COBOL · Abend code

Abend S0C4

What does Abend S0C4 mean in COBOL?

The program attempted to access a storage address outside the memory it is authorized to reference, commonly from an out-of-bounds subscript, a bad pointer, or I/O against an unopened file.

Abend S0C4z/OS

Condition

The program attempted to access a storage address outside the memory it is authorized to reference, commonly from an out-of-bounds subscript, a bad pointer, or I/O against an unopened file.

Fix

Validate array and table subscripts before use, check LINKAGE SECTION alignment between calling and called programs, and confirm every file is opened before it is read, written, or closed.

Related abend code