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

S0C4

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

A storage-access program check: a protection, segment-translation or page-translation exception, told apart by the reason code.

QUICK ANSWER

A storage-access program check: a protection, segment-translation or page-translation exception, told apart by the reason code.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The program key differs from the storage key of the area it tried to access (reason 4).
  2. The program referenced storage that had not been obtained (reason X'10' or X'11').
  3. A program running disabled referenced storage that was paged out.
  4. A program in 64-bit addressing mode used a 31-bit pointer with its high-order bit on, or did not clear the high half of a register after loading a 31-bit pointer.
  5. The page was protected by PGSER PROTECT or IARV64 PROTECT, or shared read-only through IARVSERV or IARV64.

CHECKED 14 Nov 2026 IBM: 0Cx - z/OS 3.2.0 System completion codes

MOST LIKELY

The program key differs from the storage key of the area it tried to access (reason 4).

FIRST CHECK

Read the reason code in the dump to see which exception occurred.

TRY IT ▸

Site search

What it means

Code 0C4 is one of the 0Cx program interruptions, raised when no routine was set to handle it. Its reason code shows which exception occurred: 4 is a protection exception, X'10' a segment-translation exception and X'11' a page-translation exception.

A protection exception means the storage key of the area being accessed differs from the key of the running program.

Typical causes

  • The program key differs from the storage key of the area it tried to access (reason 4).
  • The program referenced storage that had not been obtained (reason X'10' or X'11').
  • A program running disabled referenced storage that was paged out.
  • A program in 64-bit addressing mode used a 31-bit pointer with its high-order bit on, or did not clear the high half of a register after loading a 31-bit pointer.
  • The page was protected by PGSER PROTECT or IARV64 PROTECT, or shared read-only through IARVSERV or IARV64.

How to fix it

  1. Read the reason code in the dump to see which exception occurred.
  2. Compare the program's key (PSW key field) with the storage key and confirm the program runs in the correct key and the address is set up correctly.
  3. Allocate storage before the program references it.
  4. Page-fix storage that a disabled program references.
  5. In 64-bit mode, clear the 33 high-order bits of a register before loading a 31-bit pointer into it.