IMODULE return codes

The IMODULE SVC returns a code in register 15 in the form ffxxnnnn.

Table 1. Parts of register 15 code
Part Meaning
ff Function code is listed in parentheses next to the function name.
xx Return code from a z/OS® function. If one exists, it is described within the return codes of each function.
nnnn The return codes, which are unique to each function, are listed under the function. All return codes are hexadecimal numbers.
IMODULE GETMAIN (01)
Return code
Meaning
00
Storage allocated.
04
Storage not allocated.
08
Parameter error.
14
ONLY31=YES coded and no 31-bit storage available.
30
TRACK=STE coded and unable to build STE to track. Byte 1 (second byte) of the RC contains the RC from DFSMODU1.
38
Caller in SRB or XM mode.
IMODULE LOAD (02)
Return code
Meaning
00
Module loaded
04
Module not found
08
DFSMODU0 allocation error
0C
BLDL/FETCH allocation error

Refer to Data Administration: Macro Instruction Reference for MVS/DFP.

10
BLDL/FETCH I/O error
14
FETCH invalid record type
18
FETCH invalid address
1C
FETCH program check
20
BLDL/FETCH undefined error
24
DCB not open for BLDL
28
Authorized caller, but module was found in an unauthorized library
2C
Alias names not copied to library
38
Caller in SRB or XM mode, or task mode without an SVRB
IMODULE LOCATE (03)
Return code
Meaning
0
Storage/module located successfully
04
Storage/module not found
08
Parameter error
38
Caller in SRB or XM mode
IMODULE DELETE (04)
Return code
Meaning
00
Storage/module released successfully
04
Storage/module not found
08
Parameter error
0C
Storage not released (the xx location contains the FREEMAIN return code)
38
Caller in SRB or XM mode
IMODULE DIRLOAD (05)
Return code
Meaning
00
Module loaded
08
DFSMODU0 allocation error
0C
FETCH allocation error Insufficient storage available in SP 226, SP 230, or SP 255
10
FETCH I/O error
14
FETCH invalid record type
18
FETCH invalid address
1C
FETCH program check
20
FETCH undefined error
38
Caller in SRB or XM mode, or task mode without an SVRB
IMODULE GETSTOR (06)
Return code
Meaning
00
Storage allocated
04
Storage not allocated
08
Parameter error
10
SCD unavailable for global request
IMODULE FREESTOR (07)
Return code
Meaning
00
Storage released successfully
04
Storage not released (the xx location contains the FREEMAIN return code)
08
Parameter error
0C
Unable to locate SDE (global storage not released)
10
SCD unavailable for global request
Other IMODULE Return Codes
Return code
Meaning
3C
DFSMODU0 unable to obtain internal work area
40
Invalid function request