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 the differences between sum function and using “+” operator?
Mention some common errors that are usually committed in sas programming.
how does sas handle missing values in a merge? : Sas programming
State the difference between INFORMAT and FORMAT ?
which date function advances a date, time or datetime value by a given interval? : Sas programming
hi guys ...i have one query... data abc; input s w k g o t a m; cards; 1 2 3 4 5 6 7 8 2 3 4 5 6 7 8 9 ; run; i want the output to be the sorted order(only variables).observations should not be changed..
Mention the validation tools used in SAS?
AE datasets names? how many types?
What will calendar procedure do?
. Which date advances a date, time or date/time value by a given interval?
what are the sites did u refer for enquiries and doubts for SAS
How do you add a number to a macro variable?