COBOL · Abend code

Abend S0C5

What does Abend S0C5 mean in COBOL?

The program referenced a storage address that does not exist, typically from an uninitialized index, an out-of-range subscript, or I/O on a file that was never opened.

Abend S0C5z/OS

Condition

The program referenced a storage address that does not exist, typically from an uninitialized index, an out-of-range subscript, or I/O on a file that was never opened.

Fix

Initialize every index before first use, add explicit bounds checking around table access, and confirm the relevant file's OPEN executed successfully before use.

Related abend code