Usage Note 44486: Order of Library assignment differs between modes of execution of SAS®
The order of Library assignment differs between modes of execution of SAS®, potentially generating different results from the same code running in different environments.
For a SAS server started by the SAS Object Spawner, such as a SAS Workspace Server or SAS®Stored Process Server, the order of Library assignment is:
- Libraries marked as pre–assigned in metadata (assuming the METAAUTORESOURCES system option is set for the session)
- Libraries defined by a LIBNAME statement in an autoexec file
For SAS sessions not started by the SAS Object Spawner, such as a SAS Batch Server, SAS® Connect Server, or scheduled SAS jobs (all known as MVA SAS sessions), the order of execution is reversed:
- Libraries defined by a LIBNAME statement in an autoexec file
- Libraries marked as pre-assigned in metadata (assuming the METAAUTORESOURCES system option is set for the session)
Unexpected behavior is most common in MVA sessions when a SAS autoexec contains steps dependent on the successful assignment of a pre–assigned Library. Because the SAS autoexec executes prior to the Library pre–assignment, the step might fail. A typical error message is:
ERROR: Libname LIBREF is not assigned.
For the most consistent behavior across execution modes, use LIBNAME statements in an autoexec file or within the program code to assign Libraries required for the program.
Operating System and Release Information
| SAS System | SAS Integration Technologies | z/OS | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
| Windows Vista | 9.1 TS1M3 SP4 | |
| Windows Vista for x64 | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
| HP-UX IPF | 9.1 TS1M3 SP4 | |
| Linux | 9.1 TS1M3 SP4 | |
| Linux on Itanium | 9.1 TS1M3 SP4 | |
| OpenVMS Alpha | 9.1 TS1M3 SP4 | |
| Solaris for x64 | 9.1 TS1M3 SP4 | |
| Tru64 UNIX | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | |
| Topic: | Data Management ==> Data Sources ==> Metadata Data Management ==> Data Sources ==> SAS Libraries
|
| Date Modified: | 2012-01-12 14:07:27 |
| Date Created: | 2011-09-30 17:03:22 |