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 the role of unrestrictive users? : sas-grid-administration
What is the difference between the proc sql and data step?
Mention what are the data types does SAS contain?
How necessary is it to be creative in your work?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
what is program data vector? : Sas-administrator
What are the different versions of sas that you have used until now? : sas-grid-administration
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
why a stop statement is needed for the point= option on a set statement?
What is program data vector (pdv)?
How to specify variables to be processed by the freq procedure?
What is the difference between match merge and one to one merge?
how sas deals with business intelligence? : Sas-bi
What are the difference between the sas data step and sas procs?
What are the five ways to do a table lookup in sas? : sas-grid-administration