How to do user inputs and command line arguments in SAS? D&B
Answer Posted / 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 |
Post New Answer View All Answers
Can you execute a macro within a macro? Describe. : sas-macro
What are the prime responsibilities of data integration administrator? : Sas-di
What do the put and input function do?
what is data integration? : Sas-di
Explain the difference between informat and format with an example.
What are the statements that are executed only?
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
what is sas application server? : Sas-di
What are the data types in sas?
Mention what is the difference between nodupkey and nodup options?
What is the command used to find missing values?
what is the basic structure sas administrator? : Sas-administrator
why is sas considered self-documenting? : Sas programming
Explain the use of proc print and proc contents?
Give some examples where proc report’s defaults are different than proc print’s defaults?