COBOL/400 Language Help


CANCEL Statement

Description
The CANCEL statement ensures that the next time the referenced subprogram is called, it will be entered in its initial state.

A CANCEL statement:

No action is taken when you use a CANCEL statement to cancel the following types of programs:

Called subprograms may contain CANCEL statements. However, recursive calls are not allowed; a called subprogram must not contain a CANCEL statement that directly or indirectly cancels the calling program itself, or any other program higher than itself in the calling hierarchy. In this case, control passes to the next statement.

              *----------------*
              +                +
              V                +
->->----CANCEL--*--identifier-1--*----------------------------><-
              *--literal-1-----*
 


[ Top of Page | Previous Page | Next Page | Table of Contents ]