SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading and Concatenating SAS Data Sets
Selecting Variables


Question:
The data set Clinic.Admit contains the variables ID, Name, Sex, Age, Date, Height, Weight, ActLevel, and Fee. If you submit the DATA step below, which variables appear in the Clinic.NewData data set?

data clinic.newdata(keep=id sex kgwgt);
   set clinic.admit(drop=name date);
   if actlevel='LOW';
   kgwgt=height/2.2;
run;
  ID, Sex
  Name, ID, Date, Sex
  ID, KgWgt, Sex
  Date, KgWgt, Name



  back||next

 

Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement