Format 5 (inline-perform)

The EXIT PERFORM statement controls the exit from an inline PERFORM without using a GO TO statement or a PERFORM ... THROUGH statement.

Format 5

Read syntax diagramSkip visual syntax diagramEXIT PERFORM CYCLE

An EXIT PERFORM statement specified outside of an inline PERFORM statement is not allowed.

When an EXIT PERFORM statement without the CYCLE phrase is executed, control is passed to an implicit CONTINUE statement. This implicit CONTINUE statement immediately follows the END-PERFORM phrase that matches the most closely preceding and unterminated inline PERFORM statement.

When an EXIT PERFORM statement with the CYCLE phrase is executed, control is passed to an implicit CONTINUE statement. This implicit CONTINUE statement immediately precedes the END-PERFORM phrase that matches the most closely preceding and unterminated inline PERFORM statement.