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:
-
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
FileNew 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:
-
Select
SolutionsAccessoriesRegistry Editor or issue the
regedit
command
to open the Registry Editor.
-
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 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.