SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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:

  1. In SAS Management Console, open the Properties dialog box for the registered database table.
  2. 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.
  3. 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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Metadata ServerMicrosoft® Windows® for x649.219.4_M49.2 TS2M29.4 TS1M4
Microsoft Windows Server 20089.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Enterprise 32 bit9.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Enterprise x649.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Home Premium 32 bit9.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Home Premium x649.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Professional 32 bit9.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Professional x649.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Ultimate 32 bit9.219.4_M49.2 TS2M29.4 TS1M4
Windows 7 Ultimate x649.219.4_M49.2 TS2M29.4 TS1M4
64-bit Enabled AIX9.219.4_M49.2 TS2M29.4 TS1M4
64-bit Enabled HP-UX9.219.4_M49.2 TS2M29.4 TS1M4
64-bit Enabled Solaris9.219.4_M49.2 TS2M29.4 TS1M4
HP-UX IPF9.219.4_M49.2 TS2M29.4 TS1M4
Linux9.219.4_M49.2 TS2M29.4 TS1M4
Linux for x649.219.4_M49.2 TS2M29.4 TS1M4
Solaris for x649.219.4_M49.2 TS2M29.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.