SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 43275: A CLI error occurs when you access DB2 via SAS/ACCESS® 9.2 Interface to ODBC and PROC SQL implicit pass-through processing

DetailsHotfixAboutRate It

The following error might be generated when you access a DB2 table with SAS/ACCESS 9.2 to ODBC:

ERROR: CLI prepare error: [IBM][iSeries Access ODBC-Treiber][DB2 UDB]SQL0104 -
Token { invalid. valid Token: ( + - ? : DAY NOT RRN CASE CAST CHAR DATE DAYS
HASH HOUR LEFT.

This error occurs when you use SQL procedure's implicit pass-through processing and you subset using a very long WHERE condition. In SAS 9.2, the WHERE clause is truncated between creation and the time it is submitted to the ODBC call.

The same code works perfectly in SAS® 9.13.

The workaround is to use PROC SQL explicit pass-through processing.

A fix for this problem is planned for a later release.



Operating System and Release Information

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