SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 35928: An error occurs when you access data of types BLOB and CLOB from a DB2 table

DetailsHotfixAboutRate It

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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M3 SP49.2 TS2M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M0
Windows Vista9.1 TS1M3 SP49.2 TS2M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M0
HP-UX IPF9.1 TS1M3 SP49.2 TS2M0
Linux9.1 TS1M3 SP49.2 TS2M0
Linux on Itanium9.1 TS1M3 SP49.2 TS2M0
Solaris for x649.1 TS1M3 SP49.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.