Problem Note 69788: Errors occur when writing to DB2 with SAS/ACCESS® Interface to DB2 when *_max_bytes is set in the LIBNAME statement
When the LIBNAME statement contains *_max_bytes with DB2 UTF-8 encoding and SAS Unicode, errors occur when you insert into DB2. Here are two scenarios in which this issue occurs.
Scenario 1:
Read from a DB2 table that contains a VARGRAPHIC and create a SAS data set. Then create a DB2 table from the SAS data set, and the following error occurs:
ERROR: During insert: [IBM][CLI Driver] CLI0125E Function sequence error. SQLSTATE=HY010
Scenario 2:
Create a DB2 table from sashelp.class (with *_max_bytes set), and the following error occurs:
ERROR: During insert:[IBM] [CLI Driver] CLI0109E String data right truncation. SQLSTATE=22001
To work around this issue, create one LIBNAME statement for reading from DB2 and one LIBNAME statement to write to DB2.
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to DB2 | Solaris for x64 | 9.4 TS1M7 | |
| Linux for x64 | 9.4 TS1M7 | |
| HP-UX IPF | 9.4 TS1M7 | |
| 64-bit Enabled Solaris | 9.4 TS1M7 | |
| 64-bit Enabled AIX | 9.4 TS1M7 | |
| Windows 7 Ultimate x64 | 9.4 TS1M7 | |
| Windows 7 Ultimate 32 bit | 9.4 TS1M7 | |
| Windows 7 Professional x64 | 9.4 TS1M7 | |
| Windows 7 Professional 32 bit | 9.4 TS1M7 | |
| Windows 7 Home Premium x64 | 9.4 TS1M7 | |
| Windows 7 Home Premium 32 bit | 9.4 TS1M7 | |
| Windows 7 Enterprise x64 | 9.4 TS1M7 | |
| Windows 7 Enterprise 32 bit | 9.4 TS1M7 | |
| Microsoft Windows Server 2022 | 9.4 TS1M7 | |
| Microsoft Windows Server 2019 | 9.4 TS1M7 | |
| Microsoft Windows Server 2016 | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 Std | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 R2 Std | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M7 | |
| Microsoft Windows Server 2012 Datacenter | 9.4 TS1M7 | |
| Microsoft Windows Server 2008 for x64 | 9.4 TS1M7 | |
| Microsoft Windows Server 2008 R2 | 9.4 TS1M7 | |
| Microsoft Windows Server 2008 | 9.4 TS1M7 | |
| Microsoft Windows 11 | 9.4 TS1M7 | |
| Microsoft Windows 10 | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Pro x64 | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M7 | |
| Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M7 | |
| Microsoft Windows 8 Pro x64 | 9.4 TS1M7 | |
| Microsoft Windows 8 Pro 32-bit | 9.4 TS1M7 | |
| Microsoft Windows 8 Enterprise x64 | 9.4 TS1M7 | |
| Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M7 | |
| Microsoft® Windows® for x64 | 9.4 TS1M7 | |
*
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: | medium |
| Date Modified: | 2023-01-02 12:31:24 |
| Date Created: | 2022-12-26 14:30:48 |