To import a registry file using the SAS Registry Editor:
1. Select File ð Import Registry File.
2. In the Open window, select the SASXREG file to import.
Note: In order to first create the backup registry file, you can use the REGISTRY
Procedure or the Export Registry File menu choice in the Registry Editor.
Exporting a Registry File
You usually export a registry file or SASXREG file, when you are preparing a backup
registry file. You can export a complete registry or just part of a registry.
To export a registry file using the SAS Registry Editor:
1. In the left pane of the Registry Editor, select the key that you want to export to a
SASXREG file.
To export the entire registry, select the top key.
2. Select File ð Export Registry File.
3. In the Save As window, give the export file a name.
4. Click Save.
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 ð Options ð Explorer
menu from within the Explorer. All the Explorer configuration data is stored in the
registry under COREExplorer. The following table outlines the location of the most
commonly used Explorer configuration data.
Table 14.1 Registry Locations for Commonly Used Explorer Configuration Data
Registry Key What portion of the Explorer it configures
COREEXPLORERCONFIGURATION the portions of the Explorer get initialized at
startup.
COREEXPLORERMENUS the context menus that are displayed in the
Explorer.
232 Chapter 14 The SAS Registry
Registry Key What portion of the Explorer it configures
COREEXPLORERKEYEVENTS the valid key events for the 3270 interface.
This key is used only on the mainframe
platforms.
COREEXPLORERICONS Which icons to display in the Explorer. If the
icon value is –1, this causes the icon to be
hidden in the Explorer.
COREEXPLORERNEW This subkey controls what types of objects are
available from the File ð 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 COREOPTIONSLIBNAMES“your libref”.
However, it is best to delete your library reference by using the SAS Explorer. This
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 COREOPTIONSFILEREFSyour fileref.
However, it is best to delete your library reference by using the SAS Explorer. This
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 that 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.
1. Enter 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. Verify that the file shortcut was created successfully and enter the REGEDIT
command.
6. Find and select the key COREOPTIONSFILEREFSyour fileref.
7. Select File ð Export Registry File and export the file.
Configuring Your Registry 233
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 imports 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 that 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. Enter 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. Select Enable at startup.
5. Click OK.
6. Issue the REGEDIT command after verifying that the library was created
successfully.
7. Find and select the registry key COREOPTIONSLIBNAMESyour libref.
8. Select File ð Export Registry File.
The Save As window appears.
9. Select a location to store your registry file.
10. Enter a filename for your registry file in the Filename field.
11. Click Save to export the file.
12. Right-click the file and select Edit in NOTEPAD to edit the file.
13. Edit the exported file and replace all instances of “HKEY_USER_ROOT” with
“HKEY_SYSTEM_ROOT”.
14. To apply your changes to the site's Sashelp use PROC REGISTRY. The
following code imports 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 fails after it had previously worked. In some situations, editing
the registry is the fastest way to fix the problem. This 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:
234 Chapter 14 The SAS Registry
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 librefs. You can open this
window by typing DMLIBASSIGN in the toolbar, or selecting File ð New 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 they can prevent
your libraries from being assigned at startup.
To correct a libref assignment error using the SAS Registry Editor:
1. Select Solutions ð Accessories ð 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:
COREOPTIONSLIBNAMES
or
COREOPTIONSLIBNAMESCONCATENATED
Note: These corrections are possible only for permanent librefs. That is, those that are
created at startup by using the New Library or File Shortcut Assignment window.
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.
Configuring Your Registry 235
236 Chapter 14 The SAS Registry
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.177.86