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 |
what are sas/access and sas/connect? : Sas programming
Describe the function and untility of the most difficult SAS macro that you have written.
How we can create SAS USER DEFINED CODE?
How to import the Zip files into SAS? If it is possible in SAS? If it is posible write the code...
How to save the log information in a file for future use
How substr function works in sas?
how do you test for missing values? : Sas programming
how do you debug and test your sas programs? : Sas programming
what is washout period?
In the flow of DATA step processing, what is the first action in a typical DATA Step?
How do you generate random samples?
What is the difference between an informat and a format? Name three informats or formats.