How to do user inputs and command line arguments in SAS? D&B
Answers were Sorted based on User's Feedback
Answer / segu
we can pass the paramters at run time.
here is an example which passes three parameters( 3 dates)
to a program calles pgm_name:
>sas pgm_name -sysparm "01aug95 05aug94 10jan60"
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rupesh
we can input values in dataset runtime using WINDOW statement:
data temp;
length name $20;
length sex $1;
window start
#3 @5 'enter the name' +1 name attr=underline
#4 @5 'enter the age' +2 age attr=underline
#5 @5 'enter the sex' +2 sex attr=underline
#7 'when complete type end in cmd';
display start;
run;
Is This Answer Correct ? | 0 Yes | 0 No |
how do you derive descriptive statistics?
1 Answers Accenture, Quintiles,
How does the internal authentication work in sas? : sas-grid-administration
When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?
How do you add a number to a macro variable?
What is the Program Data Vector (PDV) and What are its functions?
What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?
Where do you use proc means over proc freq?
How would you remove a format that has been permanently associated with a variables?
What is slibref?
How do you add a prefix to some or all variables in a dataset using a SAS macro?
what is null hypothesis? why do you consider that?
0 Answers Accenture, Quintiles,
Explain the main difference between the sas procedures and functions? : Sas-administrator