MERGE statement has more than one data set with repeats of BY values.
218 data MGH_PCI;
219 merge MGH(IN=MGH) PCI(IN=PCI);
220 by HealthCardNumber;
221 if MGH and PCI;
222 run;
NOTE: There were 21423 observations read from the data set WORK.MGH.
NOTE: There were 117715 observations read from the data set WORK.PCI.
NOTE: The data set WORK.MGH_PCI has 7265 observations and 240 variables.
NOTE: DATA statement used (Total process time):
real time 0.21 seconds
cpu time 0.15 seconds
Hello,
I understnad that the PCI data set has repeat entries for the by variable HealthCardNumber; and therefore I get the above message
But i want to understand which records are used to merge in the case of a repeat entry i.e which records are put into the merged table. Would sas put the first time it encountered a matching HealthCardNumber into the table