If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
Answer / Devendra Kumar Sharma
To use specific variables from a dataset in SAS, you can specify them in the DATA step using the KEEP= option or the DROP= option. Example using KEEP=: n data new_data; set old_data(keep=var1 var2 var3 var4 var5);
| Is This Answer Correct ? | 0 Yes | 0 No |
For what purpose(s) would use the RETURN statement?
What are the functions which are used for character handling functions?
I have a dataset with variables empid and doj how to calculate retirement age?
what is change analysis in sas di ? : Sas-di
What would you change about your job?
How do you add a number to a macro variable?
what has been your most common programming mistake? : Sas programming
Can you excute a macro within a macro? Describe.
What's the difference between VAR A1 - A4 and VAR A1 - A4?
Explain append procedure?
What is the pound sign used for in the data_null_ ?
Explain what is the use of proc gplot?