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

S047

Unauthorized program used a restricted serviceSYSTEM ABEND · CHECKED 2026-11-14
Checked against IBM documentation

A program without authorization issued a restricted supervisor call (SVC), so the system ended it with system completion code 047.

QUICK ANSWER

A program without authorization issued a restricted supervisor call (SVC), so the system ended it with system completion code 047.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The calling program is not running in an APF-authorized environment.
  2. The program runs in problem state with a PSW key of 8 or higher but issues an SVC that only authorized callers may use.

CHECKED 14 Nov 2026 IBM: 047 system completion code (z/OS 3.2.0 IBM Documentation)

MOST LIKELY

The calling program is not running in an APF-authorized environment.

FIRST CHECK

Ask the system programmer to set a SLIP trap (COMP=047, ACTION=SVCD) to capture an SVC dump.

TRY IT ▸

Site search

What it means

Abend 047 means an unauthorized program issued a restricted SVC. IBM lists three ways a program counts as authorized: running in supervisor state, having PSW key 0-7, or running in an APF-authorized environment.

The system writes a logrec data set error record when it happens.

Typical causes

  • The calling program is not running in an APF-authorized environment.
  • The program runs in problem state with a PSW key of 8 or higher but issues an SVC that only authorized callers may use.

How to fix it

  1. Ask the system programmer to set a SLIP trap (COMP=047, ACTION=SVCD) to capture an SVC dump.
  2. In the system trace, find the SVC D entry for abend 047 and the preceding SVC entry for the same TCB and ASID; its PSW points to the unauthorized program.
  3. For an installation module, continue diagnosis in that module; for an IBM module, search for a fix or contact IBM Support with the dump and logrec record.

Example

Illustrative only; names and values are invented.

Illustrative only:
IEA995I SYMPTOM DUMP OUTPUT
  SYSTEM COMPLETION CODE=047