Hi I would like to merge two data sets with the intent of just adding one column (Denominator) to the "s6Freq72Numerator" data set. I thought I was able to easily do this in the past, but maybe not. The code I thought would be successful in doing this is below. However, when I use this, the resulting data set is not sorted by exitMonthCategory and and there are missing records from "s6Freq72Numerator". I am attaching a spreadsheet that has an example of the data from the "s6Freq72Numerator" and "s6Freq72Denominator" data sets and what I was intending as the result. If anyone has any ideas, please let me know. Paul proc sort data=s6Freq72Numerator; by cnty_name startyear exitMonthCategory; run; proc sort data=s6Freq72Denominator; by cnty_name startyear exitMonthCategory; run; data s6Final72; merge s6Freq72Numerator s6Freq72Denominator; by cnty_name startyear; run;
... View more