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 |
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
What are the advantages of using sas?
What is the purpose of using the N=PS option?
what are some differences between proc summary and proc means? : Sas programming
What are the data types does SAS contain?
Describe crosslist option in tables statement?
Are you involved in writing the inferential analysis plan? Tables specifications?
What are the different servers in sas? : sas-grid-administration
what are the scrubbing procedures in sas? : Sas programming
how does sas know on which server the piece of code to be executed ? say if a proc olap code is written then how the sas application would detect on which server to execute.
what are several options for creating reports in web report studio? : Sas-bi
What is difference between (a-z) and (a--z)