A fix is available
APAR status
Closed as program error.
Error description
After ALTER ADD column with a default value, column is added to both BASIC table and history table, but DB2 for z/OS does not add default value to history table. Doing the same compare again with no other changes, DB2 Admin tries to add the default value to the history table, but DB2 of z/OS does not allow this and fails with: -20180 ALTER TABLE PMRTGP41.TESTHISTTBLE ALTER COLUMN EMAIL5 SET WITH DEFAULT 'EMAIL 5'
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: Users of the DB2 Administration Tool for * * z/OS and DB2 Object Comparison Tool for * * z/OS. * **************************************************************** * PROBLEM DESCRIPTION: When using the ALTER ADD statement to * * add a column with a default value to * * a temporal table, a column is added to * * both the temporal table and history * * table, but DB2 for z/OS does not add * * the default value to the history table. * * When peforming a compare on the * * history table, the applied change * * attempts to alter the default value of * * the history table, but DB2 of z/OS * * does not allow the action and fails * * with a SQLCODE=-20180 * * / SQLCODEN20180 error message: * * * * -20180 ALTER TABLE XXX.XXXX * * COLUMN BBBB * * SET WITH DEFAULT 'AAAA' * **************************************************************** * RECOMMENDATION: * **************************************************************** Altering the default value on a history table causes a SQLCODE=-20180 / SQLCODEN20180.
Problem conclusion
Problem is resolved. The new messages ADB7221W and ADB7222W are displayed when attempting to alter a default value on a history table. ADB7221W The default value for appended column >column_name< is not propagated from temporal table to the history table. Explanation: The default value can not be propagated to the history table when adding a new column in the temporal table because of DB2 limitation. System action: Processing continues. User response: None. ADB7222W The difference in the default value for column >column_name< can not be implemented in a history table. Explanation: The default value can not be altered in the history table because of DB2 limitation. System action: Processing continues. User response: None.
Temporary fix
Comments
APAR Information
APAR number
PI45372
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2015-07-22
Closed date
2016-02-09
Last modified date
2016-03-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ADBCCM ADBCDTS ADB2CMP ADB2CMR ADB2CMT ADB2CMU ADB2PA5 ADB2PA6 ADB2RE ADB2REE ADB2REX ADB2REZ ADB7000 H0IHB10J
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
RA20 PSY UI35221
UP16/02/11 P F602
RB10 PSY UI35222
UP16/02/11 P F602
RB20 PSY UI35223
UP16/02/11 P F602
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":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
02 March 2016