Previous Page | Next Page

The SAS Registry

Configuring Your Registry


Configuring Universal Printing

Universal Printers should be configured by using either the PRTDEF procedure or the Print Setup window. The REGISTRY procedure can be used to back up a printer definition and to restore a printer definition from a SASXREG file. Any other direct modification of the registry values should be done only under the guidance of SAS Technical Support.


Configuring SAS Explorer

While it is best to use the Explorer Options window to configure your Explorer settings, you can use the Registry Editor to view the current Explorer settings in the SAS registry. The Explorer Options Window is available from the TOOLS [arrow] Options [arrow] Explorer drop-down menu from within the Explorer. All the Explorer configuration data is stored in the registry under CORE\Explorer. The following table outlines the location of the most commonly used Explorer configuration data.

Registry Key What portion of the Explorer it configures
CORE\EXPLORER\CONFIGURATION the portions of the Explorer get initialized at startup.
CORE\EXPLORER\MENUS the context menus that get displayed in the Explorer.
CORE\EXPLORER\KEYEVENTS the valid key events for the 3270 interface. This key is used only on the mainframe platforms.
CORE\EXPLORER\ICONS Which icons to display in the Explorer. If the icon value is -1, this causes the icon to be hidden in the Explorer.
CORE\EXPLORER\NEW This subkey controls what types of objects are available from the File [arrow] New menu in the Explorer.


Configuring Libraries and File Shortcuts with the SAS Registry

When you use the New Library window or the File Shortcut Assignment window to create a library reference (libref) or a file reference (fileref), these references are stored for future use when you click the Enable at Startup check box in either of these two windows.

Library references (librefs) and file references (filerefs) are saved when you check "Enable at startup" and they are stored in the SAS registry, where it is possible to modify or delete them, as follows:

Deleting an "Enable at Startup" library reference

You can use the Registry Editor to delete an "Enable at Startup" library reference by deleting the corresponding key under CORE\OPTIONS\LIBNAMES\"your libref". However, it is best to delete your library reference by using the SAS Explorer, which removes this key from the registry when you delete the library reference.

Deleting an "Enable at Startup" file shortcut

You can use the Registry Editor to delete an "Enable at Startup" file shortcut by deleting the corresponding key under CORE\OPTIONS\FILEREFS\"your fileref". However, it is best to delete your library reference by using the SAS Explorer, which removes this key automatically when you delete the file shortcut.

Creating an "Enable at Startup" File Shortcut as a site default

A site administrator might want to create a file shortcut which is available to all users at a site. To do this, you first create a version of the file shortcut definition in the SASUSER registry. Then you modify it so that it can be used in the SASHELP registry.

Note:   You need special permission to write to the SASHELP part of the SAS registry.  [cautionend]

  1. Type the DMFILEASSIGN command. This opens the File Shortcut Assignment window.

  2. Create the file shortcut that you want to use.

  3. Check Enable at Startup.

  4. Click OK.

  5. Type the command REGEDIT after verifying that the file shortcut was created successfully.

  6. Find and select the key CORE\OPTIONS\FILEREFS\<your fileref>.

  7. SelectFile [arrow] Export Registry File and export the file.

  8. Edit the exported file and replace all instances of HKEY_USER_ROOT with HKEY_SYSTEM_ROOT.

  9. To apply your changes to the site's SASHELP, use PROC REGISTRY. The following code will import the file:

    proc registry import="yourfile.sasxreg" usesashelp;
    run;
Creating an "Enable at Startup" Library as a site default

A site administrator might want to create a library which is available to all users at a site. To do this, the SASUSER version of the library definition needs to be migrated to SASHELP.

Note:   You need special permission to write to the SASHELP part of the SAS registry.  [cautionend]

  1. Type the dmlibassign command. This opens the New Library window.

  2. Create the library reference that you want to use.

  3. Select Enable at Startup.

  4. Click OK.

  5. Issue the regedit command after verifying that the library was created successfully.

  6. Find and select the registry key CORE\OPTIONS\LIBNAMES\<your libref>.

  7. Select File [arrow] Export Registry File. The Save As window appears.

  8. Select a location to store your registry file.

  9. Enter a filename for your registry file in the File name field.

  10. Click Save to export the file.

  11. Right-click the file and select Edit in NOTEPAD to edit the file.

  12. Edit the exported file and replace all instances of "HKEY_USER_ROOT" with "HKEY_SYSTEM_ROOT".

  13. To apply your changes to the site's SASHELP use PROC REGISTRY. The following code will import the file:

    proc registry import="yourfile.sasxreg" usesashelp;
    run;

Fixing Library Reference (Libref) Problems with the SAS Registry

Library references (librefs) are stored in the SAS Registry. You might encounter a situation where a libref that previously worked, fails. In some situations, editing the registry is the fastest way to fix the problem. The following section describes what is involved in repairing a missing or failed libref.

If any permanent libref that is stored in the SAS Registry fails at startup, then the following note appears in the SAS Log:

NOTE: One or more library startup assignments were not restored.

The following errors are common causes of library assignment problems:

Note:   You can also use the New Library window to add librefs. You can open this window by typing DMLIBASSIGN in the toolbar, or selecting File [arrow] New from the Explorer window.  [cautionend]

CAUTION:
You can correct many libref assignment errors in the SAS Registry Editor.

If you are unfamiliar with librefs or the SAS Registry Editor, then ask for technical support. Errors can be made easily in the SAS Registry Editor, and can prevent your libraries from being assigned at startup.  [cautionend]

To correct a libref assignment error using the SAS Registry Editor:

  1. Select Solutions [arrow] Accessories [arrow] Registry Editor or issue the regedit command to open the Registry Editor.

  2. Select one of the following paths, depending on your operating environment, and then make modifications to keys and key values as needed:

    CORE\OPTIONS\LIBNAMES

    or

    CORE\OPTIONS\LIBNAMES\CONCATENATED

Note:   These corrections are possible only for permanent librefs; that is, those that are created at start-up by using the New Library or File Shortcut Assignment window.  [cautionend]

For example, if you determine that a key for a permanent, concatenated library has been renamed to something other than a positive whole number, then you can rename that key again so that it is in compliance. Select the key, and then select Rename from the pop-up menu to begin the process.

Previous Page | Next Page | Top of Page