SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 42119: An error is issued when you attempt to register a DB2 table in metadata

DetailsHotfixAboutRate It

The following error message can be issued when you attempt to register very large DB2 tables in metadata:

ERROR: CLI cursor fetch error: [IBM][CLI Driver][DB2/AIX64] SQL0413N
Overflow occurred during numeric data type conversion. SQLSTATE=22003

The DB2 API does not support BIGINT data type for CARDINALITY columns and therefore, SAS/ACCESS® Interface to DB2 is not able to support it either. Currently in the DB2 API, CARDINALITY is defined as an INTEGER and if a very large table is used the above error is received. For example, a table with over 6 billion rows in an index can cause the error above when SAS tries to query the information about the index.

This issue occurs outside of SAS using the DB2 command-line processor as well.

To work around this issue:

  • Drop the indexes on the DB2 table outside of SAS, import the large table into metadata within SAS, and then recreate the indexes on the DB2 table outside of SAS.
  • Create a duplicate of the original table without any rows and call it 'dummy' outside of SAS. Rename the original table to 'old' outside of SAS. Now rename the dummy table to the original table outside of SAS. Import the table, which is really just the dummy (empty) table with same metadata within SAS. Then finally rename the old table back to the original table outside of SAS.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M39.3 TS1M1
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M39.3 TS1M1
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M39.3 TS1M1
Microsoft Windows XP 64-bit Edition9.2 TS2M39.3 TS1M1
Microsoft® Windows® for x649.2 TS2M39.3 TS1M1
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M39.3 TS1M1
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M39.3 TS1M1
Microsoft Windows Server 2003 Standard Edition9.2 TS2M39.3 TS1M1
Microsoft Windows Server 2003 for x649.2 TS2M39.3 TS1M1
Microsoft Windows Server 20089.2 TS2M39.3 TS1M1
Microsoft Windows Server 2008 for x649.2 TS2M39.3 TS1M1
Microsoft Windows XP Professional9.2 TS2M39.3 TS1M1
Windows 7 Enterprise 32 bit9.2 TS2M39.3 TS1M1
Windows 7 Enterprise x649.2 TS2M39.3 TS1M1
Windows 7 Home Premium 32 bit9.2 TS2M39.3 TS1M1
Windows 7 Home Premium x649.2 TS2M39.3 TS1M1
Windows 7 Professional 32 bit9.2 TS2M39.3 TS1M1
Windows 7 Professional x649.2 TS2M39.3 TS1M1
Windows 7 Ultimate 32 bit9.2 TS2M39.3 TS1M1
Windows 7 Ultimate x649.2 TS2M39.3 TS1M1
Windows Vista9.2 TS2M39.3 TS1M1
Windows Vista for x649.2 TS2M39.3 TS1M1
64-bit Enabled AIX9.2 TS2M39.3 TS1M1
64-bit Enabled HP-UX9.2 TS2M39.3 TS1M1
64-bit Enabled Solaris9.2 TS2M39.3 TS1M1
HP-UX IPF9.2 TS2M39.3 TS1M1
Linux9.2 TS2M39.3 TS1M1
Linux for x649.2 TS2M39.3 TS1M1
Solaris for x649.2 TS2M39.3 TS1M1
* 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.