If you have a data set that contains 100 variables, but you
need only five of those, what is the code to force SAS to
use only those variable?
Answer Posted / sindhura
new_data_set ( will have the five variables with variable
names var1, var2, var3, var4, var5)
data new_data_set;
set old_data_set( keep = var1 var2 var3 var4 var5);
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
Give some examples where proc report’s defaults are same as proc print’s defaults?
what is the use of sas management console? : Sas-di
Briefly explain input and put function?
What is the length assigned to the target variable by the scan function?
Did you used proc test? when?
what is the difference between nodup and nodupkey options? : Sas programming
What is the SAS data set?
How are numeric and character missing values represented internally?
Do you need to know if there are any missing values?
how does sas handle missing values in a merge? : Sas programming
Do you need to rearrange the order of the data for the report?
Explain the difference between informat and format with an example.
Difference between nodup and nodupkey options?
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?