PL/I · Exception

ONCODE 320: ZERODIVIDE

What does ONCODE 320: ZERODIVIDE mean in PL/I?

The program attempted to divide by zero.

ONCODE 320: ZERODIVIDEIBM Enterprise PL/I for z/OS · PL/I for AIX

Condition

The program attempted to divide by zero.

Fix

Add an explicit test for a zero divisor before the DIVIDE operation or the '/' operator, or establish an ON ZERODIVIDE unit to handle it deliberately instead of letting it fall through to ERROR.

Pending source verification. Not yet checked against official documentation.

Related exception