, 1 min read

IGYRC5108-U: IBM Cobol Compiler Terminating

I stumbled on below error message from the IBM COBOL compiler for mainframe:

IGYRC5108-U   COBOL COMPILER TERMINATING:  UNCORRECTABLE PROGRAM INTERRUPT CONDITION.

The COBOL program was not fully compiled but compilation stopped midway.

Further messages from the compile run:

PROGRAM CHECK, INTERRUPT CODE 04
PSW 078D2F00 CAA178A4

REGISTERS 0 - 15:
4A9973EE 00000084 0013421C 00000026         00081180 00000000 00069364 00079C54
00000000 00000000 00079C54 4A9C6B48         4A9972BC 4A997000 CA9C68C6 CA9C6D42

 CURRENT COBOL COMPILER PHASE: IGYCPANA (STORAGE LOC: CA9C6000)

LAST MODULE RECORDING CONTROL: IGYNXML  (STORAGE LOC: 4AA153D0)
INTERRUPT OCCURRED AT STORAGE LOCATION: 00A178A4
CURRENT LINE NUMBER: 010055 PP 5655-EC6 IBM ENTERPRISE COBOL FOR Z/OS  6.3.0 P210118       CZF02     DATE 05/17/2024  TIME 18:38:56   PAGE   231

Compiler in question is "Enterprise COBOL for z/OS 6.3.0".

Searching for this error message brought below entry from IBM: IGYRC5108-U COBOL Compiler Error Message for Phase IGYCPSCN. This is not pointing to the real cause.

The real problem is that you have used too much space in WORKING-STORAGE SECTION. I.e., your variables in there consume too much space. When remembering Memory Limitations with IBM Enterprise COBOL Compiler this comes as no shocking surprise. So reducing this occupied space solved the problem. In my case I had a couple of large PIC X(256000) clauses.