A fix is available
APAR status
Closed as program error.
Error description
Adding a column via an ALTER to an index that has at least 1 INCLUDE column will result in a -20181 SQL error. To allow the addition of the column, the behavior in this specific scenario will be changed to a drop/recreate of the index. Keyword: SQLCODE20181N
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: Users of Db2 Administration Tool for z/OS * * and Db2 Object Comparison Tool for z/OS * **************************************************************** * PROBLEM DESCRIPTION: Adding a column to an index results in * * a -20181 SQL error. * **************************************************************** Compare generates a work statement list (WSL) that adds a column to an index with an ALTER operation. However, Db2 restricts adding a column to an index when that index has at least 1 INCLUDE column. The index must be dropped and recreated. Running the WSL results in the following error: SQLCODE = -20181, ERROR: COLUMN CANNOT BE ADDED TO INDEX >tb_schema<.>tb_name< Keyword: SQLCODE20181N A list of Db2 restrictions for adding a column to an index can be found at https://www.ibm.com/docs/en/db2-for-zos/12?topic=codes-20181
Problem conclusion
The problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PH43274
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
C10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2022-01-12
Closed date
2022-03-25
Last modified date
2022-04-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI79887
Modules/Macros
ADB2CME
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
RC10 PSY UI79887
UP22/04/01 P F203
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.
[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0"}]
Document Information
Modified date:
02 April 2022