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


Please Help Members By Posting Answers For Below Questions

How would you define the end of a macro? : sas-macro

717


Explain what is SAS informats?

722


What do the put and input function do?

681


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1000


what is snowflake schema? : Sas-di

789






WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2392


What would be the value of month at the end of data step execution and how many observations would be there?

674


What are the automatic variables for macro? : sas-macro

765


why a stop statement is needed for the point= option on a set statement?

703


Give some examples where proc report’s defaults are different than proc print’s defaults?

688


what is sas business intelligence? : Sas-bi

677


how can you import .csv file in to sas? : Sas programming

736


what are input dataset and output dataset options? : Sas programming

664


what r the job openings SAS for fresher graduates !

2102


what is the basic structure sas administrator? : Sas-administrator

655