Assembly / HLASM · Abend code

Abend S0C2

What does Abend S0C2 mean in Assembly / HLASM?

The program attempted to execute an instruction, or issue a supervisor call, that is restricted to an authorized state the program does not have.

Abend S0C2z/OS · HLASM

Condition

The program attempted to execute an instruction, or issue a supervisor call, that is restricted to an authorized state the program does not have.

Fix

Check whether the instruction or SVC actually requires APF authorization, and confirm the load module is running from an APF-authorized library if it genuinely needs that access. Most application-level assembler code should never need privileged instructions at all, so this often points to a mistaken opcode rather than a missing authorization.

Related abend code