REGISTRY Procedure

Example 2: Listing and Exporting the Registry

Features:

EXPORT=

LISTUSER

Details

The registry file is usually very large. To export a portion of the registry, use the STARTAT= option.
This example lists the SASUSER portion of the SAS registry and exports it to an external file.

Program

proc registry
   listuser
   export='external-file';
run;

Program Description

Write the contents of the SASUSER portion of the registry to the SAS log. The LISTUSER option causes PROC REGISTRY to write the entire SASUSER portion of the registry to the log.
proc registry
   listuser
Export the registry to the specified file. The EXPORT= option writes a copy of the SASUSER portion of the SAS registry to the external file.
   export='external-file';
run;

Output: Log

Log Output from Exporting a File from the SAS Registry

Starting to write out the registry file, please wait...
The export to file external-file is now complete.
Contents of SASUSER REGISTRY.
[  HKEY_USER_ROOT]
[    CORE]
[      EXPLORER]
[        CONFIGURATION]
        Initialized= "True"
[        FOLDERS]
[          UNXHOST1]
          Closed= "658"
          Icon= "658"
          Name= "Home Directory"
          Open= "658"
          Path= "~"