Interview Questions   Tutorials   Discussions   Programs   Videos   

SAS - 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?




314
views
asked mar September 20, 2014 06:29 AM  

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?


           

1 Answers



 
answered By vishnoiprem   0  

Using KEEP option or statement.

Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.

Proc sort data=BY State District County ;
Run ;
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert