Problem Note 61375: When you connect to DB2, you receive "Error... SQL0206N '???' is not valid in the context where it is used. SQLSTATE=42703..."
When reading or writing to IBM DB2 from SAS®, you might receive the following error message:
ERROR: ERROR: [IBM][CLI Driver][DB2/LINUXX8664] SQL0206N "???" is not valid in
the context where it is used. SQLSTATE=42703
ERROR: Unable to add rows to table.
ERROR: General error
This problem occurs because of the IBM DB2 code. IBM has fix 37036 for this issue. After you install this fix to your 10.5 DB2 client, the db2level looks similar to the following:
DB21085I This instance or install (instance name, where applicable: "db2v10")
uses "64" bits and DB2 code release "SQL10057" with level identifier "0608010E".
Informational tokens are "DB2 v10.5.0.7", "special_37036", "IP23956_37036", and
Fix Pack "7".
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to DB2 | Solaris for x64 | 9.4 TS1M5 | |
| Linux for x64 | 9.4 TS1M5 | |
| HP-UX IPF | 9.4 TS1M5 | |
| 64-bit Enabled Solaris | 9.4 TS1M5 | |
| 64-bit Enabled AIX | 9.4 TS1M5 | |
| Windows 7 Ultimate x64 | 9.4 TS1M5 | |
| Windows 7 Ultimate 32 bit | 9.4 TS1M5 | |
| Windows 7 Professional x64 | 9.4 TS1M5 | |
| Windows 7 Professional 32 bit | 9.4 TS1M5 | |
| Windows 7 Home Premium x64 | 9.4 TS1M5 | |
| Windows 7 Home Premium 32 bit | 9.4 TS1M5 | |
| Windows 7 Enterprise x64 | 9.4 TS1M5 | |
| Windows 7 Enterprise 32 bit | 9.4 TS1M5 | |
| Microsoft Windows Server 2016 | 9.4 TS1M5 | |
| Microsoft Windows Server 2012 Std | 9.4 TS1M5 | |
| Microsoft Windows Server 2012 R2 Std | 9.4 TS1M5 | |
| Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M5 | |
| Microsoft Windows Server 2012 Datacenter | 9.4 TS1M5 | |
| Microsoft Windows Server 2008 for x64 | 9.4 TS1M5 | |
| Microsoft Windows Server 2008 R2 | 9.4 TS1M5 | |
| Microsoft Windows Server 2008 | 9.4 TS1M5 | |
| Microsoft Windows 10 | 9.4 TS1M5 | |
| Microsoft Windows 8.1 Pro x64 | 9.4 TS1M5 | |
| Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M5 | |
| Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M5 | |
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M5 | |
| Microsoft Windows 8 Pro x64 | 9.4 TS1M5 | |
| Microsoft Windows 8 Pro 32-bit | 9.4 TS1M5 | |
| Microsoft Windows 8 Enterprise x64 | 9.4 TS1M5 | |
| Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M5 | |
| Microsoft® Windows® for x64 | 9.4 TS1M5 | |
*
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: | 2017-11-15 11:58:35 |
| Date Created: | 2017-11-08 10:16:13 |