Previous Topic Next topic Print topic


REVERT

Purpose

Cancels an ON-unit established for a specified condition in the current block.

Syntax

REVERT condition-name;

Parameters

condition-name
The keyword name associated with the condition for which the ON-unit is to be reverted, namely: ANYCONDITION, AREA, ATTENTION, CONDITION(name), CONVERSION, ENDFILE(f), ENDPAGE(f), ERROR, FINISH, FIXEDOVERFLOW, KEY(f), OVERFLOW, RECORD(f), UNDEFINEDFILE, UNDERFLOW, USERCONDITION(expression), USERCONDITION(SS$_UNWIND), VAXCONDITION(expression), or ZERODIVIDE.
Note:

Abbreviation(s):

  • ATTN for ATTENTION
  • COND for CONDITION
  • CONV for CONVERSION
  • OFL for OVERFLOW
  • UFL for UNDERFLOW
  • UNDF for UNDEFINEDFILE
  • ZDIV for ZERODIVIDE

Description

The REVERT statement cancels an ON-unit established for a specified condition in the current block. If no ON-unit for the condition is established in the current block activation, the REVERT statement has no effect.

The reference given in an I/O condition name must produce a file value. The I/O condition is qualified by the file I/O associated with f. This means that in the example below, REVERT ENDPAGE (F) ; and REVERT ENDPAGE (G); revert to different ON-units if F and G designate different files; otherwise, they revert to the same ON-unit.

Example

REVERT ERROR;
REVERT ENDPAGE(F);
REVERT ENDPAGE(G);

Restrictions

None.

Previous Topic Next topic Print topic