Previous Topic: Output Variables

Next Topic: Examples of OPSJESX Function

Return and Reason Codes

The following return codes are returned in the OPSRC variable. Associated reason codes are returned in the OPSRE variable.

0 – Successful completion.

1 -- Error in OPS/MVS related processing

Reason codes:

Note: If an ABEND occurs, the ABEND code will be used as the reason code. The ABEND code can be eight hexadecimal numbers.

2 – Subsystem error as reported by IBM IEFSSREQ processing.

Reason codes:

Note: The reason codes below correspond to the IBM IEFSSREQ return codes as documented in the IBM manual z/OS Using the Subsystem Interface. For more information, see the IBM manual.

Note: The return codes below (RC=4 and higher) correspond to the SSOBRETN return codes for the Extended Status Function Call (SSI 80) as documented in the IBM manual z/OS MVS Using the Subsystem Interface. Refer to the IBM manual for more information.

4 – search argument error – the search arguments cannot be used as specified

8 – search argument logic error – the reason code further explains the logic error

12 – Request type error – the request type in STATTYPE is not valid.