A fix is available
APAR status
Closed as program error.
Error description
Missing update by a trigger when the trigger is created after the triggering package is bound. Condition: 1. "AFTER & BEFORE UPDATE" trigger 2. the trigger is created after a triggering package is bound 2a) there is even one update column in "UPDATE OF column-name" specified. 2b) No other after update/before update trigger already exist before bind. 3. there have to be at least 3 rows qualified for the UPDATE.
Local fix
rebind the UPDATE package
Problem summary
**************************************************************** * USERS AFFECTED: All Db2 11 and Db2 12 for z/OS users of * * UPDATE statement, which is executed on * * tables with before update or after update * * triggers and triggers contain WITH UPDATE * * OF clause. * **************************************************************** * PROBLEM DESCRIPTION: Db2 fails to execute the before trigger * * or after trigger actions when running * * the SQL UPDATE statement. * * The failure occurs only when triggers * * are created after the UPDATE statement * * is bound. * **************************************************************** * RECOMMENDATION: * **************************************************************** Db2 fails to execute the before trigger or after trigger actions when running the SQL UPDATE statement. The failure occurs only when triggers are created after the UPDATE statement is bound. The reason of the failure is that the bind time optimized UPDATE code (UPROC) has not generated instruction to set the bit map for the columns being updated. As a result, Db2 fails to execute the expected triggers action.
Problem conclusion
Db2 has been modified to set the bit map for the updated columns when the triggers are created after the UPDATE statement is bound.
Temporary fix
Comments
APAR Information
APAR number
PH09929
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2019-03-19
Closed date
2019-06-27
Last modified date
2019-08-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI63944 UI63946
Modules/Macros
DSNILREP
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
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":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.0","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
01 August 2019