Examine or load trigger definition. The format of the $ZTRIGGER() function is:
$ZTRIgger(expr1
[,expr2
])
$ZTRIGGER() returns the truth value expression depending on the success of the specified action.
$ZTRIGGER() performs trigger maintenance actions similar those performed by MUPIP TRIGGER.
If
expr1
evaluates to case-insensitive "FILE", $ZTRIGGER() evaluatesexpr2
as the location of the trigger definition file. Then, it applies the trigger definitions in the file specified byexpr2
with no user confirmation in the case of a -*.If
expr1
evaluates to case-insensitive "ITEM", $ZTRIGGER() evaluatesexpr2
as a single line trigger definition entry.If
expr1
evaluates to case-insensitive "SELECT", $ZTRIGGER() evaluates the optionalexpr2
as a trigger name or name wildcard, and direct its output to $IO. A FALSE result indicates there are no matching triggers.$ZTRIGGER() can appear within a transaction as long as it does not update any triggers for globals which have had triggers invoked earlier in the same transaction.
An attempt by a $ZTRIGGER() within a transaction to remove or replace a trigger on a global after the transaction has activated any trigger defined within the named global generates a TRIGMODINTP error.