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

ZERODIVIDE condition

Status
ZERODIVIDE is enabled throughout the program, except within the scope of the NOZERODIVIDE condition prefix.
Result
The result of a division by zero is undefined.
Cause and syntax
The ZERODIVIDE computational condition is raised when an attempt is made to divide by zero. This condition is raised for fixed-point and floating-point division. If the numerator of a floating-point divide is also zero, INVALIDOP is raised.

If the ZERODIVIDE condition is raised and it is disabled, the program is in error.

Read syntax diagramSkip visual syntax diagram>>-ZERODIVIDE--------------------------------------------------><
 
Abbreviation
ZDIV
Implicit action
A message is printed and the ERROR condition is raised.
Normal return
The ERROR condition is raised.
Condition code
320

Terms of use | Feedback

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