Problem Note 38707: An error occurs when you add the DBSASTYPE= option to a database table in SAS® Management Console and you run a query that uses the metadata engine
You might receive the following error if you try to reference a table in a library that uses the DBSASTYPE= option:
ERROR: Incorrect length in SAS Metadata Repository for column Age.
This error occurs when you define a library in a SAS® metadata repository that references a third-party database management system and you subsequently assign that library in a SAS session using the META engine.
For example, the following code generates the error:
libname dbmslib meta library="Name of metadata lib" repname="Foundation";
data sasdata;
set dbmslib.emp(dbsastype=(id='char(20)'));
run;
In addition, the following error occurs when you run this query and you do not select the column that was changed:
ERROR: Column does not exist: age
To circumvent the problem, you must first manually add the DBSASTYPE table option to library's properties in metadata by following these steps:
- In SAS Management Console, open the Properties dialog box for the registered database table.
- In the dialog box, click the Physical Storage tab. Then click the Table Options button in the lower right corner to display the Table Options dialog box.
- In the Table Options dialog box, click the General tab. Then enter the DBSASTYPE= option shown below in the Additional Options section:
dbsastype=(id='char(20)'));
After you add the table option, you must also then manually change the column Type and Length attributes on the Columns tab of the table's Properties window in SAS Management Console.
Note:After you save the manual changes, you must not use the Update Metadata tool or the METALIB procedure to update the table metadata. Doing so removes the changes and reverts the table properties to their original settings.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS Metadata Server | Microsoft® Windows® for x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Microsoft Windows Server 2008 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Enterprise 32 bit | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Enterprise x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Home Premium 32 bit | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Home Premium x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Professional 32 bit | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Professional x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Ultimate 32 bit | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Windows 7 Ultimate x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
64-bit Enabled AIX | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
64-bit Enabled HP-UX | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
64-bit Enabled Solaris | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
HP-UX IPF | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Linux | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Linux for x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
Solaris for x64 | 9.21 | 9.4_M4 | 9.2 TS2M2 | 9.4 TS1M4 |
*
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: | Problem Note |
Priority: | high |
Date Modified: | 2011-05-10 10:41:16 |
Date Created: | 2010-02-11 15:21:07 |