Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

S0C7

Data exceptionSYSTEM ABEND · CHECKED 2026-11-14
Checked against IBM documentation

A decimal instruction used a field whose contents are not valid numeric data, so check the fields of the failing statement first.

QUICK ANSWER

A decimal instruction used a field whose contents are not valid numeric data, so check the fields of the failing statement first.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. A numeric variable used by the failing statement was never initialised correctly.
  2. Packed or zoned data carries a sign other than the preferred one while the program was compiled with NUMPROC(PFD).
  3. REDEFINES or group moves changed numeric data so that it no longer follows the standard sign formats.
  4. A zoned or packed sending field, or an alphanumeric field moved to a numeric receiver, holds contents that are not valid numeric digits.

CHECKED 14 Nov 2026 IBM: CEE3207S - z/OS 3.2.0 Language Environment runtime messages · NUMPROC - Enterprise COBOL for z/OS 6.5.0 · NUMCHECK - Enterprise COBOL for z/OS 6.5.0

TRY IT: RECORD DECODER ▸

MOST LIKELY

A numeric variable used by the failing statement was never initialised correctly.

FIRST CHECK

Check that every variable in the failing statement was initialised correctly.

TRY IT ▸

Record decoder

What it means

Code 0C7 is the program check for a data exception: a decimal instruction was applied to bytes the hardware cannot treat as a valid number. Language Environment reports it as CEE3207S.

The program is terminated unless a condition handler takes over.

Valid vs invalid bytes

VALID · PIC S9(5) COMP-3

01
23
4C

Digits, then sign C: +1234.

INVALID · SAME FIELD HOLDING SPACES

40
40
40

The first five half-bytes are valid digits, but the last one, 0, is not a sign (A–F), so the field is not valid packed decimal.

Typical causes

  • A numeric variable used by the failing statement was never initialised correctly.
  • Packed or zoned data carries a sign other than the preferred one while the program was compiled with NUMPROC(PFD).
  • REDEFINES or group moves changed numeric data so that it no longer follows the standard sign formats.
  • A zoned or packed sending field, or an alphanumeric field moved to a numeric receiver, holds contents that are not valid numeric digits.

How to fix it

  1. Check that every variable in the failing statement was initialised correctly.
  2. Compile with the NUMCHECK option so an implicit numeric test flags the first invalid sending field with a message or abend.
  3. Use NUMPROC(NOPFD) when data may contain nonpreferred signs.
  4. With NUMPROC(PFD), initialise fields with INITIALIZE instead of group moves.

Example

Illustrative only; names and values are invented.

IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=0C7  REASON CODE=00000007
IEF450I PAYJOB01 STEP020 - ABEND=S0C7 U0000 REASON=00000007