A fix is available
APAR status
Closed as program error.
Error description
GEN/MIG command generate the wrong order primary and foreign key ALTER statements. The consequence on executing the generated DDL is SQLCODE -538/SQLCODEN538 during creation of foreign keys, because a primary key on the referenced table is a requirement to create a foreign key.
Local fix
n/a
Problem summary
**************************************************************** * USERS AFFECTED: Users of the DB2 Administration Tool for * * z/OS that are using the Generate (GEN) * * function. * **************************************************************** * PROBLEM DESCRIPTION: Issues with the Generate (GEN) * * command: * * * * 1- Wrong order of primary and foreign * * keys in generated DDL. * * 2- Primary key is missing in generated * * DDL. * **************************************************************** * RECOMMENDATION: * **************************************************************** This APAR contains two fixes to address the following problems: 1- Wrong order of primary and foreign keys in generated DDL. Foreign keys are generated before primary keys. 2- Primary key is missing in generated DDL.
Problem conclusion
Problems have been resolved.
Temporary fix
Comments
APAR Information
APAR number
PI99585
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
B20
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-06-26
Closed date
2018-08-28
Last modified date
2018-10-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI58141 UI58142
Modules/Macros
ADB2REG ADB2REP
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":"11.2.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
02 October 2018