Defines librefs and filerefs that are available to all programs that are run by the Application Server
Syntax
DATALIBS libref-1 | fileref-1 <...libref-n | fileref-n>;
Assign these logical libraries in an ALLOCATE statement in the same server procedure. Any libraries that are defined externally to SAS (such as, in JCL code) are automatically permanent data libraries and should not be listed in the DATALIBS statement. In previous versions of the Application Server, global data libraries or files were allocated in the permdata.sas file. The Application Server now enables you to
- assign the logical libraries externally to SAS
- allocate them with an ALLOCATE statement and then list them in the
DATALIBS statement.
Arguments
- libref-1
- specifies that the libref is assigned and accessible to all programs that run on the server. The libref cannot be cleared by the user code. Use DATALIBS for globally accessible data repositories that contain non-sensitive data. Keep private or application-specific data in its own library and assign it by using a LIBNAME statement.
- fileref-1
- specifies that the fileref is assigned and accessible to all programs that run on the server. The fileref cannot be cleared by the user code. Use DATALIBS for globally accessible data repositories that contain non-sensitive data. Keep private or application-specific data in its own file and assign it by using a FILENAME statement.
- ...libref-n | fileref-n
- specifies that you can list multiple librefs and filerefs for this statement.