An administrator can
choose to specify AUTHPW=password-value in a LIBNAME statement as an alternate method for making the metadata-bound library
password available to later requests.
A password that is supplied
by the AUTHPW option is used only if both of the following circumstances
exist:
-
AUTHADMIN=YES is specified in the LIBNAME statement.
Note: Use of AUTHADMIN=YES does
not necessitate use of AUTHPW. You are not required to specify metadata-bound
library passwords in a LIBNAME statement. However, you should not
specify metadata-bound library passwords in a LIBNAME statement that
doesn’t also specify AUTHADMIN=YES.
-
The correct password for the target metadata-bound library is not otherwise available
(either no password is supplied or the supplied password
is invalid).
In such requests, the
value from the AUTHPW option is validated against the password within
the physical table. An error is returned if the passwords do not match.
Requests to access metadata-bound
tables within a library that was assigned with AUTHADMIN=YES must
meet at least one of the following criteria:
-
The request comes from the AUTHLIB
procedure, which has a supplied password.
-
The request explicitly supplies
the password.
-
The library was also assigned with
the AUTHPW option, which supplies the password.
-
The request is interactive and
the user can supply the password when prompted.
Note: For conciseness, the preceding
discussion assumes that there is only one password for the target
metadata-bound library. For a metadata-bound library that has two
or three distinct passwords, you must specify each password (using
the AUTHREAD, AUTHWRITE, and AUTHALTER options as appropriate) instead
of using the AUTHPW option on its own.