Importing DBMS tables into a SAS® Metadata Repository via the SAS® Management Console or PROC METALIB might fail, producing messages such as the following from the:
NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE SQL used (Total process time): real time 1.12 seconds cpu time 0.01 seconds 15 PROC SQL; 16 CONNECT TO DB2( USER=dbmsuser PASSWORD=XXXXXXXX Datasrc=DATASOURCENAME ); 17 CREATE TABLE _ForeignKeys AS 18 SELECT PKCOLUMN_NAME, FKTABLE_NAME, FKCOLUMN_NAME 19 FROM CONNECTION TO DB2(DBMS::ForeignKeys("","'PSRREG#'","ADMIN_GROUP_CODES", "", 19 ! "", "")) 20 QUIT; ERROR: The following columns were not found in the contributing tables: FKCOLUMN_NAME, FKTABLE_NAME, PKCOLUMN_NAME.
NOTE 49-169: The meaning of an identifier after a quoted string may change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended. ERROR 22-7: Invalid option name XXXX. ERROR 22-7: Invalid option name XXXX. ERROR 22-7: Invalid option name XXXX. ERROR: Libname Libref is not assigned. ERROR: Libname Libref is not assigned. ERROR: Libname Libref is not assigned. Invalid free() attempt to deleted pool Traceback SASTBTraceBackCtx has been called with a string ("vacrash") instead of a CONTEXT pointer. Address Frame (DBGHELP API Version 4.0 rev 5) 000000004B50CDA0 000000000AD80520 0001:000000000006ADA0 tkmk.dll
The problem occurs when SAS passes a query to the DBMS ForeignKeys table for the columns PKCOLUMN_NAME, FKTABLE_NAME, and FKCOLUMN_NAME, and the database client fails to return those columns. Typically, columns of other names are returned, such as:
PKTABLE_QUALIFIER char(128) PKTABLE_OWNER char(128) _ char(128) _0 char(128) FKTABLE_QUALIFIER char(128) FKTABLE_OWNER char(128) _1 char(128) _2 char(128) _3 num
This problem has occurred with several databases, including DB2 and Sybase. The problem appears to be a result of the configuration of the DBMS client such that it returns columns of different names than SAS expects. Your database administrator should contact the DBMS client vendor for further assistance in correcting this problem.
To determine which columns are being returned to SAS, you can submit a query for all ForeignKeys columns, then look at the columns and attributes returned. For example:
The code should be submitted to the machine on which the table import or PROC METALIB is being run. The output of the DESCRIBE statement is written to the SAS Log. The output from DESCRIBE must contain the columns that SAS Management Console and PROC METALIB are expecting, i.e. PKCOLUMN_NAME, FKTABLE_NAME, and FKCOLUMN_NAME.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | 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 Server 2008 | 9.1 TS1M3 SP4 | |||
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |||
Windows Vista | 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 | |||
SAS System | SAS Management Console | z/OS | ||
Microsoft® Windows® for 64-Bit Itanium-based Systems | ||||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | ||||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | ||||
Microsoft Windows XP 64-bit Edition | ||||
Microsoft® Windows® for x64 | ||||
Microsoft Windows 95/98 | ||||
Microsoft Windows 2000 Advanced Server | ||||
Microsoft Windows 2000 Datacenter Server | ||||
Microsoft Windows 2000 Server | ||||
Microsoft Windows 2000 Professional | ||||
Microsoft Windows NT Workstation | ||||
Microsoft Windows Server 2003 Datacenter Edition | ||||
Microsoft Windows Server 2003 Enterprise Edition | ||||
Microsoft Windows Server 2003 Standard Edition | ||||
Microsoft Windows Server 2008 | ||||
Microsoft Windows XP Professional | ||||
Windows Millennium Edition (Me) | ||||
Windows Vista | ||||
64-bit Enabled AIX | ||||
64-bit Enabled HP-UX | ||||
64-bit Enabled Solaris | ||||
HP-UX IPF | ||||
Linux | ||||
Linux for x64 | ||||
Linux on Itanium | ||||
OpenVMS Alpha | ||||
Solaris | ||||
Solaris for x64 | ||||
Tru64 UNIX |
Type: | Usage Note |
Priority: | medium |
Topic: | Data Management ==> Data Sources ==> External Databases Data Management ==> Data Sources ==> External Databases ==> Adabas Data Management ==> Data Sources ==> External Databases ==> Datacom Data Management ==> Data Sources ==> External Databases ==> DB2 Data Management ==> Data Sources ==> External Databases ==> Dbase Data Management ==> Data Sources ==> External Databases ==> IDMS Data Management ==> Data Sources ==> External Databases ==> IMS Data Management ==> Data Sources ==> External Databases ==> Informix Data Management ==> Data Sources ==> External Databases ==> Ingres Data Management ==> Data Sources ==> External Databases ==> Lotus Data Management ==> Data Sources ==> External Databases ==> MS Access Data Management ==> Data Sources ==> External Databases ==> MS Excel Data Management ==> Data Sources ==> External Databases ==> MS SQL Server Data Management ==> Data Sources ==> External Databases ==> MySQL Data Management ==> Data Sources ==> External Databases ==> OLEDB Data Management ==> Data Sources ==> External Databases ==> Oracle Data Management ==> Data Sources ==> External Databases ==> Oracle RDB Data Management ==> Data Sources ==> External Databases ==> Redbrick Data Management ==> Data Sources ==> External Databases ==> SPSS Data Management ==> Data Sources ==> External Databases ==> Sybase Data Management ==> Data Sources ==> External Databases ==> System 2000 Data Management ==> Data Sources ==> External Databases ==> Teradata |
Date Modified: | 2009-09-21 15:51:44 |
Date Created: | 2009-09-08 16:49:30 |