The SAS Registry |
What Is the SAS Registry? |
The SAS registry is the central storage area for configuration data for SAS. For example, the registry stores
the libraries and file shortcuts that SAS assigns at startup
the menu definitions for Explorer pop-up menus
the printers that are defined for use
configuration data for various SAS products.
Note: Host printers are not referenced in the SAS registry.
Who Should Use the SAS Registry? |
The SAS registry is designed for use by system administrators and experienced SAS users. This section provides an overview of registry tools, and describes how to import and export portions of the registry.
Wherever possible, use the administrative tools, such as the New Library window, the PRTDEF procedure, Universal Print windows, and the Explorer Options window, to make configuration changes, rather than editing the registry directly. Using the administrative tools ensures that values are stored properly in the registry when you change the configuration.
Incorrect entries can cause errors, and can even prevent you from starting a SAS session.
Where the SAS Registry Is Stored |
Although the SAS registry is logically one data store, physically it consists of two different files located in both the SASUSER and SASHELP libraries. The physical filename for the registry is regstry.sas7bitm. By default, these registry files are hidden in the SAS Explorer views of the SASHELP and SASUSER libraries.
The SASHELP library registry file contains the site defaults. The system administrator usually configures the printers that a site uses, the global file shortcuts or libraries that will be assigned at startup, and any other configuration defaults for your site.
The SASUSER library registry file contains the user defaults. When you change your configuration information through a specialized window such as the Print Setup window or the Explorer Options window, the settings are stored in the SASUSER library.
If you want to restore the original site defaults to your SAS session, delete the regstry.sas7bitm file from your SASUSER library and restart your SAS session.
How Do I Display the SAS Registry? |
You can use one of the following three methods to view the SAS registry:
Issue the REGEDIT command. This opens the SAS Registry Editor
Select Solutions Accessories Registry Editor
Submit the following line of code:
proc registry list; run;
This method prints the registry to the SAS log, and it produces a large list that contains all registry entries, including subkeys. Because of the large size, it might take a few minutes to display the registry using this method.
Definitions for the SAS Registry |
The SAS registry uses keys and subkeys as the basis for its structure, instead of using directories and subdirectories like the file systems in DOS or UNIX. These terms and several others described here are frequently used when discussing the SAS Registry:
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.