This phrase handles the exceptions that result from program existence,
program activation, authority, and storage if the original
receiver of the exception is the caller. At that time, one of the following
occurs:
- If the ON EXCEPTION phrase appears in the CALL statement, control transfers
to imperative-statement-1. Processing then continues according to the rules
for each statement specified in imperative-statement-1.
If a procedure-branching
or conditional statement causing explicit transfer of control runs, control
transfers according to the rules for that statement. Otherwise, once imperative-statement-1
has run, control transfers to the end of the CALL statement, and the NOT ON
EXCEPTION phrase, if specified, is ignored.
- If the ON EXCEPTION phrase does not appear in the CALL statement, the
NOT ON EXCEPTION phrase, if specified, is ignored.