EXIT


The EXIT statement ends the current subprocess family and returns control to the previous related or detached process.

    ••••• EXIT
    (1)

(1) T/F execution conditions

Using the Statement

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.

Related Statements

CANCEL, END, END PROC, LOGOUT

Example

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