You can use the ODS OUTPUT data sets from COMPARE and parse the content. This circumvents parsing the logs. For example: ods output comparesummary=compsummary; proc compare base=libref1.dsname compare=libref2.dsname; run; data compcheck; set compsummary; where batch like '%Number of Observations with Some Compared Variables Unequal:%'; unequal=strip(compress(scan(batch,-1,":"),".")); run; ods output close; You can clean up the code to meet your needs or parse out what you want from compsummary. In the SAS Documentation you will see four other data sets that you can create from COMPARE. Hope this helps. Cheers
... View more