A fix is available
APAR status
Closed as program error.
Error description
An attempt to unload from an image copy (COPYDDN option) with a DDL file (DDLDDN option) including a column defined with the WITH DEFAULT SESSION_USER clause can lead to various errors among which the following ones: - completion code 8 and msg INZU020E ERROR WHILE RETRIEVING TABLESPACE INFO FROM THE CATALOG - the unload completes normally (completion code less than 8) but incorrect data is unloaded: the date from the columns defined after column defined with the WITH DEFAULT clause are not unloaded. The related generated LOAD statement (if requested via the LOADDDN option) is consistent with the output data: i.e. the fields definitions of missing columns are also missing For example : If the DDL file specifies: CREATE TABLE me.mytable (COL01 ... COL09 CHAR(8) FOR SBCS DATA NOT NULL WITH DEFAULT SESSION_USER, COL10 TIMESTAMP NOT NULL WITH DEFAULT) ... The data from the column COL10 is not unloaded and the LOAD statement is as follows: LOAD .... INTO TABLE me.mytable ( COL08 POSITION ( 41 ) CHAR ( 6 ) , COL09 POSITION ( 47 ) CHAR ( 8 ) ) . PB11921
Local fix
Replace the SESSION_USER from the DDL file by USER
Problem summary
**************************************************************** * USERS AFFECTED: Users of DB2 High Performance Unload. * **************************************************************** * PROBLEM DESCRIPTION: An attempt to unload from an image * * copy (COPYDDN option) with a DDL file * * (DDLDDN option) including a column * * defined with the WITH DEFAULT * * SESSION_USER clause can lead to * * various errors among which the * * following ones: * * - completion code 8 and msg INZU020E * * ERROR WHILE RETRIEVING TABLESPACE * * INFO FROM THE CATALOG * * - the unload completes normally * * (completion code less than 8) but * * incorrect data is unloaded: the date * * from the columns defined after column * * defined with the WITH DEFAULT * * SESSION_USER clause are not unloaded. * * The related generated LOAD statement * * (if requested via the LOADDDN option) * * is consistent with the output data: * * i.e. the fields definitions of missing * * columns are also missing. * * For example : * * If the DDL file specifies: * * CREATE TABLE me.mytable * * (COL01 * * ... * * COL09 CHAR(8) FOR SBCS * * DATA NOT NULL * * WITH DEFAULT SESSION_USER, * * COL10 TIMESTAMP NOT * * NULL WITH DEFAULT) * * ... * * The data from the column COL10 is not * * unloaded and the LOAD statement is as * * follows: * * LOAD * * .... * * INTO TABLE me.mytable * * ( * * COL08 * * POSITION ( 41 ) * * CHAR ( 6 ) * * , * * COL09 * * POSITION ( 47 ) * * CHAR ( 8 ) * * ). * * PB 11921 * **************************************************************** * RECOMMENDATION: APPLY the PTF. * **************************************************************** Code has been changed to correct this condition.
Problem conclusion
APPLY the PTF.
Temporary fix
Comments
APAR Information
APAR number
PM87823
Reported component name
DB2 HI PERF UNL
Reported component ID
5697F4400
Reported release
410
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-04-25
Closed date
2013-08-22
Last modified date
2013-09-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UK96943 UK96944
Modules/Macros
INZUTILK
Fix information
Fixed component name
DB2 HI PERF UNL
Fixed component ID
5697F4400
Applicable component levels
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSAUUV","label":"IBM Db2 High Performance Unload for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"410","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
12 February 2021