Problem Note 35928: An error occurs when you access data of types BLOB and CLOB from a DB2 table
The following error message may be issued when you fetch data of binary large object (BLOB) and character large object (CLOB) types from a DB2 table:
ERROR: The character variable PICTURE has too long a value for the
X library.
NOTE: The SAS System stopped processing this step because of errors.
The problem occurs when you submit code similar to the following:
libname x db2 datasrc=sample user='dbitest' password='password'
schema='dbitest';
data x.new;
set x.artists;
run;
proc print data=x.artists;
run;
In the PROC PRINT statement, x.artists contains BLOB data.
You cannot create tables based on other DB2 tables that contain BLOB or CLOB types and that have a defined length of greater than 32700. This issue occurs because the MAX_CHARVAL value for DB2 is set based on it's long VARCHAR column, which has a maximum of 32700 characters. The maximum value for MAX_CHARVAL is MACSHORT, which is 32767 characters. However, the DB2 CLOB and BLOB types permit 2 G of characters. Therefore, when the SAS Supervisor reads the DB2 MAX_CHARVAL value, it assumes the system cannot handle the length because it is 67 characters more than the maximum allowed number of characters.
Select the Hot Fix tab in this note to access the hot fix for this issue.
ATTENTION: This Hot Fix is intended for Unix and Windows customers running the DB2 Client 8.1 Fix Pack 9 or later. Customers running earlier versions of the DB2 Client should only install hot fixes prior to E9D205.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to DB2 | Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
*
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 |
Topic: | Data Management ==> Data Sources ==> External Databases ==> DB2
|
Date Modified: | 2009-07-10 16:47:12 |
Date Created: | 2009-05-14 13:59:16 |