EXIT

The EXIT statement transfers control out of a control structure: a block, a loop, a CASE statement, an interface statement, or out of the program itself.

4GLREF00000141.gif

exit code is an integer expression. If no argument is specified, then the default value is zero.

NOTE: This has no effect on Windows systems, but this syntax is supported for compatibility with 4GL programs on other operating systems.

keyword is a keyword that specifies the current statement from which control of execution is to be transferred.

The EXIT PROGRAM statement terminates the program that is currently executing. Other forms of EXIT transfer control from the current control structure to whatever statement follows the corresponding END keyword.

References

CONTINUE

END

GOTO

LABEL

MAIN

RUN