Create a summary report that compares observations with matching values for the ID variable. The ID statement specifies IDNUM as the ID variable.


proc compare base=emp95_byidnum compare=emp96_byidnum;
   id idnum;
   title 'Comparing Observations that Have Matching IDNUMs';
run;