Chapter Contents

Previous

Next
The REGISTRY Procedure

Example 4: Comparing the Registry to an External File


Procedure features: COMPARETO=
Other features: FILENAME statement

This example compares the SASUSER portion of the SAS Registry to an external file.


Program
 Note about code
filename testreg 'external-file';
 Note about code
proc registry 
   compareto=testreg;
run;


SAS Log
 Note about figure
1   filename testreg 'external-file';
2   proc registry
3     compareto=testreg;
4  run;
Parsing REG file and comparing the registry please wait....
COMPARE DIFF: Value "Initialized" in 
[HKEY_USER_ROOT\CORE\EXPLORER\CONFIGURATION]: REGISTRY TYPE=STRING, CURRENT 
VALUE="True"
COMPARE DIFF: Value "Initialized" in 
[HKEY_USER_ROOT\CORE\EXPLORER\CONFIGURATION]: FILE TYPE=STRING, FILE 
VALUE="False"
COMPARE DIFF: Value "Icon" in 
[HKEY_USER_ROOT\CORE\EXPLORER\FOLDERS\UNXHOST1]: REGISTRY TYPE=STRING, 
CURRENT VALUE="658"
COMPARE DIFF: Value "Icon" in 
[HKEY_USER_ROOT\CORE\EXPLORER\FOLDERS\UNXHOST1]: FILE TYPE=STRING, FILE 
VALUE="343"
Registry COMPARE is now complete.
COMPARE: There were differences between the registry and the file.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.