EXIT Verb - Return to CALLing Program

Syntax

EXIT {int}

Description

The EXIT verb is used in public programs to return to the calling program. Execution resumes at the statement following the CALL statement.

Parameter

Description

int

Error number in the range 0 to 255 to be issued to the calling program as soon as the EXIT is complete.

If the CALL statement contained an ERR= clause, PRO/5 takes the error branch. The CALLing program treats EXIT 127 as an escape.

See the CALL verb for task information that is restored on EXIT.

EXIT cannot be used in console mode. To exit PRO/5 from console mode, type either "RELEASE" or "BYE" at the ">" prompt.

In a compound statement, only an ELSE, FI, or a REM can follow EXIT.

Examples

9999 EXIT
5000 EXIT ERR
6200 EXIT 231

See Also

Verbs - Alphabetical Listing