Program Interrupts



These are the second type of System Abend and they occur when a specific instruction cannot be actioned.

It is possible to trap these conditions using ESPIE Exit Routines. (An example is included later ijn the material.)

These Abends can also be intercepted by ESTAE routines, but if only Program Interrupts are of interest, ESPIE will be more efficient.

Some common Program Interrupts



Code

PI

Description

S0C1

1

Invalid operation

S0C4

4

Protection exception, typically attempting to write to memory not owned by the program.

S0C6

6

Specification, which is actually less common due to the relaxation of field boundary rules.

S0C7

7

Data exception, typically generated due to invalid numerics

S0CB

11

Decimal divide exception, could be caused by divide by zero.



The actual codes are listed in the IBM System Codes manual, which often refers to the associated message, and the System Messages Manual will describe the various Reason Codes.

Copyright © Legac-e Education 2021-