In your server program,
prior to specifying the PROC SERVER step, you can predefine one or
more SAS libraries to the server by using the following syntax:
LIBNAME libref 'SAS-data-library' <options>;
How you specify the
physical pathname of the SAS library and options depends on your operating
environment. For details about the LIBNAME statement and options specific
to your operating environment, see
SAS Language Reference: Concepts and the
SAS documentation for your operating environment.
Here is an example of
how to predefine a library to the server for a UNIX operating environment
by using the LIBNAME statement:
libname mylib '/payroll/div2/emp';
After you define a library
to the server, a message is displayed in the SAS log. For example,
here is a message for a server on a UNIX operating environment:
1 libname mylib '.';
NOTE: Libref MYLIB was successfully assigned as follows:
Engine: V9
Physical Name: /payroll/div2/emp
CAUTION:
You are
discouraged from using the FILELOCKWAIT= option in the LIBNAME statement,
which specifies the
maximum length of time that a
SAS/SHARE client or server will wait for a SAS file that has
been locked by another process to become available for use. If the
wait time expires before the file becomes available, the
SAS/SHARE request to open the file will fail
and a message is written to the log. When using
SAS/SHARE to access SAS files, do not perform
additional jobs that might contend for access to the same files. For
details about the FILELOCKWAIT= option in the LIBNAME statement, see
the
SAS Companion for UNIX Environments or the
SAS Companion for Windows, as appropriate.