EXIT
The EXIT statement ends the current subprocess family and returns control to the previous related or detached process.
••••• EXIT
(1)
EXIT is used to end a subprocess family. There are no restrictions as to where you can insert the EXIT statement within a process. You can control if it is to be executed by setting appropriate true/false execution conditions.
In this example, if the customer has a zero balance, the current subprocess family terminates and control is returned to the previous related or detached process.
IF TAR
CUSTOMER BALANCE EQ 0
T EXIT