SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading and Concatenating SAS Data Sets
Selecting Variables


Question:
Suppose the data set you are reading contains the variables Age, Height, Weight,  ActLevel, Sex, and Name. Specify a data set option, in the SET statement below, so that only the variables Age, Sex, and Name will be used. (Remember to end the statement with a semicolon.)
     data test.results;
        set clinic.cltrials 
     if age>35 and sex='M';
     run;

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement