The following example returns control to the execution level "level" and then to an error processing routine "proc^prog".
With $ZTRAP: Set $ZTRAP="ZGOTO "_level_":proc^prog"
With $ETRAP: Set $ETRAP="Quit:$STACK>"_level_" Do proc^prog"
Note that, ZGOTO can be used with $ETRAP and $STACK with $ZTRAP. Alternatively if $ESTACK were NEWed at LEVEL:
Set $ETRAP="Quit:$ESTACK>0 Do proc^prog"