COBOL · Abend code

Abend S0CB

What does Abend S0CB mean in COBOL?

The program attempted to divide a value by zero.

Abend S0CBz/OS

Condition

The program attempted to divide a value by zero.

Fix

Add an explicit test for a zero divisor before every DIVIDE statement, or use the ON SIZE ERROR phrase to trap the condition instead of letting it abend.

Related abend code