Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

RESUME statement

Function

The RESUME statement causes a branch to an explicit branch address or to the statement after the statement which led to a USE procedure being executed.

Format


RESUME AT {NEXT STATEMENT | procedure-name}


Syntax rules

  1. The RESUME statement may only be specified in a USE procedure of format 2 or 4.

  2. procedure-name must be defined outside the declaratives.

General rules

  1. If execution of the RESUME statement would lead to a global USE procedure being exited, the RESUME statement is treated like CONTINUE.

  2. The RESUME statement with the NEXT STATEMENT phrase may only be executed if a USE procedure was activated by an exception condition or an input/output exception condition being triggered, i.e. the statement may not be executed by a PERFORM statement from outside the declaratives.

  3. If NEXT STATEMENT is specified, the program run is continued with an assumed CONTINUE statement. If not explicitly defined differently for a statement, this is assumed to be directly behind the statement which activated the USE procedure. For statements with scope terminators the CONTINUE statement is assumed to be directly behind the explicit or implicit scope terminator.

  4. If procedure-name is specified, the program run is continued at procedure-name.