$ZTDELIM returns piece separator for KILL and ZKILL triggers
Final Release Note
Within a KILL or ZKILL trigger the intrinsic special variable $ZTDELIM returns the piece separator (specified by -delim
in the trigger definition). Previously, $ZTDELIM was maintained only for SET triggers. [#596 (closed)]
Description
Below is the documentation for the trigger ISV $ZTDELIM
.
$ZTDELIM
Within a SET trigger context, $ZTDE[LIM] returns the piece separator, as specified by -delim in the trigger definition. This allows triggers to extract updated pieces defined in $ZTUPDATE without having the piece separator hard coded into the routine. Outside of a SET trigger context, $ZTDELIM is null.
As part of maintaining cross-references in Octo, one trigger is defined with a -delim
of |
and for trigger invocation commands of SET,KILL,ZKILL
. The SET trigger takes care of adding to the cross reference and the KILL trigger takes care of removing from the cross reference. Having $ZTDELIM defined in the SET trigger let us code it without hard coding the delimiter. But this is not possible in the KILL trigger since $ZTDELIM is always set to null in that case. Would be nice to have it set for the KILL trigger just like it is set for the SET trigger.
Draft Release Note
The trigger related ISV $ZTDELIM
returns the piece separator (as specified by -delim
in the trigger definition) even while inside a KILL
or ZKILL
trigger just like it already does when inside a SET
trigger. Previously, $ZTDELIM
was maintained only while inside a SET
trigger. [#596 (closed)]