DADSM OBTAIN function return codes

Table 1 describes DADSM OBTAIN function return codes.

Table 1. DADSM OBTAIN Function Return Codes

Return
Code (R15)

Description
0 (X'00') Successful completion of OBTAIN routine.
4 (X'04') The required volume was not mounted.
8 (X'08') The F1 DSCB was not found in the VTOC of the specified volume.
12 (X'0C') A permanent I/O error or an invalid format-1 or format-4 DSCB was encountered when processing the specified volume, or an unexpected CVAF error return code was encountered.
16 (X'10') The pointer to the work area passed by the caller was invalid.
20 (X'14') The absolute address passed (seek option) was not within the boundaries of the VTOC.
24 (X'18') Data set has a format-8 DSCB and EADSCB=NOTOK is in effect
28 (X'1C') Internal error with EADSCB=NOTOK in effect.