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

SAF-RC-8

SAF return code 8: request failedSAF / RACF RETURN CODE · CHECKED 2026-11-14
Checked against IBM documentation

SAF return code 8 means the requested function was processed and failed; for an authorization request, the user is not authorized.

QUICK ANSWER

SAF return code 8 means the requested function was processed and failed; for an authorization request, the user is not authorized.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. The user lacks the authority the request needs.
  2. No profile is found while PROTECTALL is active and the user lacks the SPECIAL attribute.
  3. A security label check failed.

CHECKED 14 Nov 2026 IBM: Return and reason codes from the external security product router (z/OS 3.2.0 IBM Documentation) · Return codes and reason codes (RACROUTE REQUEST=AUTH) (z/OS 3.2.0 IBM Documentation)

TRY IT: WHY WAS I DENIED? ▸

MOST LIKELY

The user lacks the authority the request needs.

FIRST CHECK

Read the RACF return and reason codes, not only register 15.

TRY IT ▸

Why was I denied?

What it means

The router returns 8 when the function was processed and failed. For RACROUTE REQUEST=AUTH, the user is not authorized to use the resource.

The RACF return and reason codes sit in the first two words of the RACROUTE parameter list.

Typical causes

  • The user lacks the authority the request needs.
  • No profile is found while PROTECTALL is active and the user lacks the SPECIAL attribute.
  • A security label check failed.

How to fix it

  1. Read the RACF return and reason codes, not only register 15.
  2. Look them up for the request type in the RACROUTE Macro Reference.

Example

Illustrative only; names and values are invented.

RACROUTE REQUEST=AUTH,CLASS='FACILITY',ENTITY=PAY.APP.UPDATE
  -> SAF RC=8 (RACF codes in parameter list)