I am comparing two datasets that have the same variables. The variables are "id", "insdate" & "ins" for the two insurance tables. The compare works great but I want the ouptut to show which "id" has the issue. Currently the output only shows which "OBS" (record number). There are multiple records in the datasets, therefore 'id" variable is not unique. Here's my code:
*compare datasets;
%macro compare (a,b);
proc compare base=&a compare=&b;
run;
%mend compare;
%compare (hpv1_insurance,hpv2_insurance);
%compare (hpv1_papsmear,hpv2_papsmear);
run;
Thanks,
Wal