BASE= and COMPARE= specify the data sets to compare. PRINTALL prints a full report of the differences.
proc compare base=proclib.one compare=proclib.two printall;
   title 'Comparing Two Data Sets: Full Report';
run;