Return to Homepage

Goto the Tip of the Month Archive

Other interesting pages ...
LinkedIn Profile
SAS Cheat Sheet
Useful SAS Code
Full SAS Example
Basic Statistics
Contact Information

SAS Tip of the Month
April 2014
(for SAS and WPS)

A short tip this month. Often we have a summary of statistics with one record that we want to merge on to a dataset with, lets say, monthly records. The following DATA step takes the data in SUMMARY, with MONTHLY data to produce a COMBINED dataset with all the data:

   data combined;
      if _n_=1 then set summary;
      set monthly;
   run;

Hope this is useful. See you next month.

________________________________
Updated April 2, 2014