Problem Note 42133: Using Bulkload to insert into an already existing data set can result in incorrect data
Using SAS/ACCESS® Interface to DB2 on z/OS with the BULKLOAD=YES option to load a character variable that is missing in SAS into an existing DB2 table, whose corresponding variable has been defined as NOT NULL or NOT NULL WITH DEFAULT, results in the incorrect data being inserted. When the SAS variable is missing and the DBMS variable is defined as not accepting NULLS, the value stored in data set option NULLCHARVAL= should be used, instead of either the default blank or what it was explicitly set to being used. An incorrect value of a '80'x for the first character followed by '00'x for the rest of the characters up to the full length of the field is inserted.
For example, if a variable is defined as CHAR(8) that does not allow NULLS and the variable in SAS is missing, what gets inserted is '8000000000000000'x (hexadecimal '80' followed by 7 nulls) instead of the correct value '4040404040404040'x (8 blanks).
There is no workaround for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to DB2 | z/OS | 9.1 TS1M3 SP4 | 9.3 TS1M0 |
*
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: | alert |
Date Modified: | 2011-01-21 17:24:13 |
Date Created: | 2011-01-20 12:22:38 |