SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Merging SAS Data Sets
Excluding Unmatched Observations


Question: Add a data set option to the data set Empinfo.Bonuses to create and name a variable that indicates whether the data set contributed data to the current observation. Specify InBonus as the name of the variable. (Because the variable is temporary, you can specify the variable name in any case.)
     data mergdata.emppay;
        merge reps(rename=(office=officeno))
              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