A fix is available
APAR status
Closed as program error.
Error description
In DB2 Administration Tool users can use AL command to alter a table to add a column. Defining the new column as NOT NULL and specifying NO for DEFAULT results in a new column definition of NOT NULL WITH DEFAULT. . Although defining a NOT NULL column with no DEFAULT clause would result in sqlcode104 the Admin tool provides no warning message about the conflicting options, nor a re-prompt of panel adb21tab to obtain correct options.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of DB2 Administration Tool, who use * * ADB2GEN to ALter a table to ADD a column * * and get wrong NULL and DEFAULT parameters, * * are affected. * **************************************************************** * PROBLEM DESCRIPTION: The DDL, generated by an AL, was not * * a correct one as specified on panel * * ADB21TAB, because the panel did not * * inform the user that the specified * * options were incompatible with the * * DB2 ALTER command. * **************************************************************** * RECOMMENDATION: * **************************************************************** Panel ADB21TAB failed to warn user if conflicting options are chosen for ALTER ADD COLUMN NOT NULL WITH NO DEFAULT.
Problem conclusion
Users can use AL command to alter a table to add a column. Defining the new column as NOT NULL and specifying NO for DEFAULT results in a new column definition of NOT NULL WITH DEFAULT. .* Note: Although defining a NOT NULL column with no DEFAULT clause would result in sqlcode104 the panel provided no warning message about the conflicting options, nor a re-prompt of the same panel to obtain correct options. .* The problem has now been fixed.
Temporary fix
Comments
APAR Information
APAR number
PK11060
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
510
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2005-08-26
Closed date
2005-10-10
Last modified date
2005-11-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ADB21TAB
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
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":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
03 November 2005