Assembly / HLASM · Abend code

Abend S0CB

What does Abend S0CB mean in Assembly / HLASM?

The program attempted to divide by zero, or a division produced a quotient too large for the destination field.

Abend S0CBz/OS · HLASM

Condition

The program attempted to divide by zero, or a division produced a quotient too large for the destination field.

Fix

Add an explicit test for a zero divisor before DP or D, and check the destination field size against the largest quotient the calculation can actually produce.

Related abend code