Proc compare has an automatically generated macro-variable which tells you this: &sysinfo. (zero means equal). (use noprint to suppress the output of proc compare). The return codes in detail are here: http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146743.htm .. or you could use proc sql or merge or something like this
... View more