Problem Note 46413: ERROR: Libname is not assigned when attempting to update metadata for a SAS view
If you attempt to update the SAS® Metadata Repository for a view using PROC METALIB or the Update Table Metadata feature in SAS® Management Console you will receive errors similar to the following:
ERROR: Libname MYLIB is not assigned.
ERROR: SQL View _PMTA01_.MYVIEW could not be processed because at least one
of the data sets, or views, referenced directly (or indirectly) by it could not
be located, or opened successfully.
The errors occur because the libref that is used to reference the contributing data sets or views is stored with the view definition when the view is compiled. When the PROC METALIB executes, it assigns the view library using the reserved libref _PMTA01_. When PROC METALIB tries to open the underlying data set or view, it cannot because the libref stored within the view is not assigned.
You can circumvent the problem using one of the following methods:
-
explicitly add a LIBNAME statement to the application server's autoexec.sas file to ensure that the library is assigned using the libref that is stored in the view definition
-
include the USING LIBNAME clause in the definition for views created using PROC SQL to allow the library to be assigned using the necessary libref at execution time
Operating System and Release Information
SAS System | Base SAS | Windows 7 Professional x64 | 9.21_M3 | | 9.2 TS2M3 | |
Windows 7 Home Premium x64 | 9.21_M3 | | 9.2 TS2M3 | |
Windows 7 Professional 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
Windows 7 Home Premium 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
Windows 7 Enterprise x64 | 9.21_M3 | | 9.2 TS2M3 | |
Microsoft Windows XP Professional | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Windows 7 Enterprise 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
Microsoft Windows Server 2008 for x64 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2008 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 for x64 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft® Windows® for x64 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
z/OS | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Windows 7 Ultimate 32 bit | 9.21_M3 | | 9.2 TS2M3 | |
Windows 7 Ultimate x64 | 9.21_M3 | | 9.2 TS2M3 | |
Windows Vista | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Windows Vista for x64 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
HP-UX IPF | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Linux | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Linux for x64 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
OpenVMS on HP Integrity | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
Solaris for x64 | 9.21_M3 | 9.4 | 9.2 TS2M3 | 9.4 TS1M0 |
*
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.
If you try to update the metadata for a SAS view using PROC METALIB or the Update Table Metadata feature in SAS® Management Console, you will get an error that the libname is not assigned.
Type: | Problem Note |
Priority: | medium |
Topic: | Data Management ==> Data Sources ==> Data Views Data Management ==> Data Sources ==> Metadata Data Management ==> Data Sources ==> SAS Libraries
|
Date Modified: | 2012-07-26 13:30:00 |
Date Created: | 2012-04-25 13:07:10 |