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

ERROR condition

Status
ERROR is always enabled.
Result
An error message is issued if no ON-unit is active when the ERROR condition arises or if the ON-unit does not use a GOTO (to exit the block) to recover from the condition.
Cause and syntax
The ERROR condition is the implicit action for many conditions. This provides a common condition that can be used to check for a number of different conditions, rather than checking each condition separately.

The ERROR condition is raised under the following circumstances:

In order to prevent a loop of ERROR conditions, the first statement in any ON ERROR block should be ON ERROR SYSTEM;

Read syntax diagramSkip visual syntax diagram>>-ERROR-------------------------------------------------------><
 
Implicit action
The message is printed and the FINISH condition is raised.
Normal return
The implicit action is taken.
Condition codes
All codes 1000 and above are ERROR conditions.

Terms of use | Feedback

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