You could try writting 2 triggers as in -
CREATE TRIGGER tr_insTAAnst1 NO CASCADE BEFORE INSERT ON TAAnst
REFERENCING NEW as NEW_VAR
FOR EACH ROW MODE DB2SQL
WHEN (NEW_VAR.A06_GiltigFom IS NULL)
BEGIN ATOMIC
SET NEW_VAR.A06_GiltigFom = CURRENT DATE;
END
CREATE TRIGGER tr_insTAAnst2 NO CASCADE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.