The TURN directive is used to activate or deactivate the checking of exception situations.
Format
>>TURN {exception-situation-name}... CHECKING {ON | OFF}
Syntax rules
exception-situation-name must be one of the names listed in table 45 in section "Exception conditions and exception statuses".
No exception-situation-name may be specified more than once in a TURN directive.
General rules
If the TURN directive is specified within a statement, it applies for the first time for the next statement.
The same TURN phrase applies for WHEN phrases in EVALUATE and SEARCH statements as for the EVALUATE and SEARCH statements themselves.
If no TURN directive is specified for an exception-situation-name, ">>TURN exception-situation-name CHECKING OFF" is assumed for this name.
If ON is specified or assumed, the check of the exception situation designated by exception-situation-name is activated for the subsequent source text. The check remains activated until it is deactivated by another TURN directive for exception-situation-name with the OFF phrase.
If OFF is specified, the check of the exception situation designated by exception-situation-name is deactivated for the subsequent source text. The check remains deactivated until it is activated again by another TURN directive for exception-situation-name with the ON phrase.