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
The RESUME statement may only be specified in a USE procedure of format 2 or 4.
procedure-name must be defined outside the declaratives.
General rules
If execution of the RESUME statement would lead to a global USE procedure being exited, the RESUME statement is treated like CONTINUE.
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.
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.
If procedure-name is specified, the program run is continued at procedure-name.