COBOL · Abend code

Abend S0C7

What does Abend S0C7 mean in COBOL?

The program attempted an arithmetic or data-movement operation against a numeric field that contains invalid, non-numeric, or uninitialized data, most often a corrupted packed-decimal (COMP-3) field.

Abend S0C7z/OS

Condition

The program attempted an arithmetic or data-movement operation against a numeric field that contains invalid, non-numeric, or uninitialized data, most often a corrupted packed-decimal (COMP-3) field.

Fix

Check for uninitialized numeric fields (add VALUE ZERO or an explicit MOVE before first use), verify the record layout being read matches the copybook exactly, and use NUMERIC class tests before arithmetic on any field populated from external input.

Related abend code