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 is SAS? What are the functions does it performs?
explain the main difference between the nodup and nodupkey options? : Sas-administrator
Mention what is the difference between nodupkey and nodup options?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
What is the SAS data set?
why is sas considered self-documenting? : Sas programming
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
What is factor analysis?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
What do you code to create a macro? : sas-macro
How do you use the do loop if you don’t know how many times you should execute the do loop?
Explain the use of proc gplot? : sas-grid-administration
What is the use of function Proc summary?
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
How to include or exclude specific variables in a data set?