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 |
diff between nodup rec and ondup key???
Mention what are the data types does SAS contain?
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
which date function advances a date, time or datetime value by a given interval? : Sas programming
What are the limitations for memory allocation for SAS variables
Explain the purpose of retain statement.
what are the three main credit bureau names
1 Answers Synchrony Financial,
what r the job openings SAS for fresher graduates !
Can you calculate the mean, median and mode of the following data set using data step logic? Don't use any function or procedure. data a; input age @@; datalines; 22 32 32 32 43 23 24 56 45 54 28 29 27 26 25 28 30 20 18 37 36 47 46 56 19 20 ; run; I have calculated the mean which i have posted in the answer section.
How do you add a prefix to some or all variables in a dataset using a SAS macro?
In the SAS Data step what is the difference between the subsetting done by Where and subsetting done by If?
What is the purpose of the trailing and How would you use them?