Mainframe Path Start learning free
BeginnerError and abend codesS806

S806 — module not found

z/OS could not find the load module to run or load in any library the step searched.

What happened

The step ends with S806, often before your program does anything. The system names the module it could not find.

Typical JES messages (illustrative)
CSV003I REQUESTED MODULE PAYCALX NOT FOUND
CSV028I ABEND806-04  JOBNAME=PAYJOB01  STEPNAME=STEP020
IEF450I PAYJOB01 STEP020 - ABEND=S806 U0000 REASON=00000004

What it means

A program was requested — by PGM= on the EXEC statement, by a dynamic CALL, or by a system service — and z/OS searched its libraries without finding a Member of that name. Reason code 04 means not found; other reason codes point to problems such as I/O errors while searching.

The usual search order is modules already loaded for the job step, then STEPLIB or JOBLIB, then the link pack area, then the system link list. The first match wins.

Typical causes

Symptoms

The CSV003I message names the missing module, which is often not your main program but something it calls. Compare with S706, where the module is found but marked not executable, and with an older copy running silently, where nothing abends but your change does not show. In CICS the equivalent is a program-not-found condition or an APCT abend, not S806.

Where to look

How to diagnose

  1. Read the module name in CSV003I. Is it your program or something called by it?
  2. Check the spelling in the JCL or the dynamic CALL variable.
  3. Open JESJCL and list the libraries searched, in order.
  4. Look for the member in each library.
  5. If it is missing, check the binder output and the promotion record.
  6. If it is a system or product routine, check the right runtime library is in the concatenation.

How to fix

Correct the name, add the right library to STEPLIB, or rebuild and promote the module through your normal process. Then restart the step. Because S806 usually happens before any data is processed, a restart from the failing step is normally safe, but confirm that with the job's Runbook.

How to prevent

Production considerations

Interview question

A job abends S806 right after a promotion. What do you check?

Stuck on something else?
Ask the community or search the full course.

Ask a question