ESCAPE

Exit from the current paragraph.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

ESCAPE

General Rules:

  1. Processing resumes with the first statement after the statement performing the paragraph, except if ESCAPE occurs in the first or main logic paragraph of:
    • The main program--control returns to the operating system by generating an EXIT PROGRAM statement.
    • A called program--control passes to the first statement after the CALL statement in the calling program. The called program generates an EXIT PROGRAM statement.

Example:

If the condition in line 2220 is true, pass control back to line 2050.
           .
           .
002030  CHECK-DATA
002040       PERFORM STEP-1
002050       ADD 1 TO COUNTER
           .
           .
002210  STEP-1
002220       IF X = 1
002230            ESCAPE
002240       ADD 1 TO FIELD-A