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-----*
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.