A LINK, XCTL, ATTACH or LOAD with EP or EPLOC failed, most often because the module was not found in the library searched; reason codes identify the case.
QUICK ANSWER
A LINK, XCTL, ATTACH or LOAD with EP or EPLOC failed, most often because the module was not found in the library searched; reason codes identify the case.
LIKELY CAUSES, IN THE ORDER OF THIS ENTRY
Module not found in the private library, job library or link library (reason code 04), possibly because limited library search (LSEARCH=YES) did not find it.
An alias whose entry point attributes (authorization, RMODE, entry point displacement) differ from the load module already loaded.
An uncorrectable I/O error searching the directory, for example an uninitialized PDS (reason code 08).
The library DCB is not open, or a LOAD with explicit load has no DCB parameter (reason codes 0C, 10).
The module was not in the link pack area for an XCTL from an SVC routine (reason code 14).
Module not found in the private library, job library or link library (reason code 04), possibly because limited library search (LSEARCH=YES) did not find it.
FIRST CHECK
For reason code 04, make sure the program was not modified incorrectly and the library is specified correctly and contains the module.
Abend 806 is detected by the supervisor or the BLDL SVC during LINK(X), XCTL(X), ATTACH(X) or LOAD processing with the EP or EPLOC operand. Reason code 04 is the common one: the module could not be found in the indicated library.
The system issues a message depending on the reason code, such as CSV003I for code 04, and an abend dump.
Typical causes
Module not found in the private library, job library or link library (reason code 04), possibly because limited library search (LSEARCH=YES) did not find it.
An alias whose entry point attributes (authorization, RMODE, entry point displacement) differ from the load module already loaded.
An uncorrectable I/O error searching the directory, for example an uninitialized PDS (reason code 08).
The library DCB is not open, or a LOAD with explicit load has no DCB parameter (reason codes 0C, 10).
The module was not in the link pack area for an XCTL from an SVC routine (reason code 14).
How to fix it
For reason code 04, make sure the program was not modified incorrectly and the library is specified correctly and contains the module.
Check for duplicate aliases or related primary module names in the library concatenation, since all names and aliases must be unique.
For reason codes 0C and 1C, make sure the DCB for the library is valid and open, then rerun.
For reason codes 14 and 18, report the completion code to the system programmer.