Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

REVERT statement

Execution of the REVERT statement in a given block cancels the ON-unit for the condition that executed in that block. The ON-unit that was established at the time the block was activated is then reestablished. REVERT affects only ON statements that are internal to the block in which the REVERT statement occurs and that have been executed in the same invocation of that block.

Read syntax diagramSkip visual syntax diagram           .-,---------.
           V           |
>>-REVERT----condition-+--;------------------------------------><
 
condition
Is any one of those described in Conditions or defined with the CONDITION attribute.

The REVERT statement cancels an ON-unit only if both of the following conditions are true:

  1. An ON statement that is eligible for reversion, and that specifies a condition listed in the REVERT statement, was executed after the block was activated.
  2. A REVERT statement with the specified condition was not previously executed in the same block.

If either of these two conditions is not met, the REVERT statement is treated as a null statement.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)