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 to 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 only be done 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 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 only used 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\NEWS

This subkey controls what types of objects are available from the 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 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.

  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 .

  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. Select 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.

  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 .

  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 The Save As window appears.

  8. Select a location to store your registry file.

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

  10. Click 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 may 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:

  • Required field values for libref assignment in the SAS Registry are missing

  • Required field values for libref assignment in the SAS Registry are invalid. For example, library names are limited to eight characters , and engine values must match actual engine names .

  • encrypted password data for a libref has changed in the SAS Registry.

Note  

You can also use the New Library window to add and delete librefs. You can open this window by typing LIBASSIGN in the toolbar, or selecting from the Explorer window.

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.

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

  1. Select 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 

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.




SAS 9.1.3 Language Reference. Concepts
SAS 9.1.3 Language Reference: Concepts, Third Edition, Volumes 1 and 2
ISBN: 1590478401
EAN: 2147483647
Year: 2004
Pages: 258

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net