A fix is available
APAR status
Closed as program error.
Error description
Compare gets invalid trigger DDL
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Db2 Object Comparison Tool for z/OS * **************************************************************** * PROBLEM DESCRIPTION: Object Compare generates invalid DDL * * for triggers. * **************************************************************** When a comparison results in creating both advanced triggers and basic triggers, Object Compare might incorrectly attempt to create the basic trigger as an advanced trigger. Example error: SQL error in PREPARE for statement: CREATE OR REPLACE TRIGGER TS5791A.TG17677_REG VERSION AFTER INSERT ON TS DSNT408I SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD INSERT. TOKEN NO BEFORE INSTEAD AFTER WAS EXPECTED DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = 2 0 0 -1 61 506 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'00000002' X'00000000' X'00000000' X'FFFFFFFF' X'0000003D' X'000001FA' SQL DIAGNOSTIC INFORMATION
Problem conclusion
The problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PH41042
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
2021-10-01
Closed date
2021-10-07
Last modified date
2021-11-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI77499
Modules/Macros
ADB2CMR
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
RC10 PSY UI77499
UP21/10/12 P F110
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 November 2021