IBM Support

Support PROGRAM NAME on CREATE TRIGGER

News


Abstract

Support PROGRAM NAME on CREATE TRIGGER

Content

You are in: IBM i Technology Updates > Db2 for i - Technology Updates > Db2 for i Functional Enhancements > Support PROGRAM NAME on CREATE TRIGGER

Provides the ability to specify a short name for the created trigger program.
When this is not supplied, the database will determine the system name, which could lead to differences in the system name for the trigger program across different machines.
CREATE TRIGGER tr1_trigger_program_21 AFTER UPDATE OF c1 ON TR1
REFERENCING OLD AS o NEW AS n
FOR EACH ROW MODE DB2ROW
PROGRAM NAME trg21
BEGIN ATOMIC
INSERT INTO tr2 VALUES(default, o.c1, n.c1);
END

{ "data": [ { "Article Type":"Technical Information (DA700)", "Category":"IBM i", "ARM Category":"IBM i Db2 > Triggers", "Keywords":"IBM i; 7.4; 7.3; 7.2; SQL; Db2; PROGRAM NAME; CREATE TRIGGER", "Predicate":"USAGE", "Classifier":"LEARN" } ] }

[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000001i6GAAQ","label":"IBM i Db2-\u003ETriggers"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]

Document Information

Modified date:
31 October 2026

UID

ibm11167730