SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Merging SAS Data Sets
Selecting Variables


Question: Suppose the Empinfo.Bonuses data set contains the variables ID, Name, Office, Manager, Location, and Amount. Specify a data set option in the MERGE statement below to use only the variables ID, Name, and Amount from the data set.
data mergdata.emppay;
   merge reps(rename=(office=officenumber))
         empinfo.sales
         empinfo.bonuses ;
   by id;
run;  

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement