COMPARETO compares the file that is associated with the fileref testreg to the SASUSER portion of the SAS Registry.
proc registry 
   compareto=testreg;
run;