Previous Topic: How to Use ADDRESS MQ Commands

Next Topic: ADDRESS NETMAN Host Environment

ADDRESS MQ Return Codes

Variables MQ.RETURN and MQ.REASON are created after each CONNECT, OPEN, GET, PUT, CLOSE, DISCONNECT command executes. The MQ.RETURN variable contains the same value as RC. The MQ.REASON variable contains detail information about the RETURN code.

ADDRESS MQ produces the following return and reason codes:

0

Okay

  1. Output data from the GET function truncated
  2. Input data for the PUT function truncated
  3. Input data for the SET function truncated
2

PSF error

  1. Parse error
  2. Syntax error
4

Error when accessing or creating a REXX variable.

  1. Invalid integer value
8

Error during the CONNECT, DISCONNECT, OPEN, or CLOSE operation.

  1. ADDRESS MQ cannot be used in a rule

    Possible error in called MQ macro (see note.)

12

Error during the GET, PUT, SET, or INQUIRE operation. Possible error in called MQ macro (see note.)

16

Unexpected ABEND.

20

ADDRESS MQ could not send or retrieve MQ messages. Check to ensure that the INITMSF parameter is set to YES.

Note: To see details about MQ macro reason codes, see the IBM WebSphere MQ for z/OS Messages and Codes. MQ.REASON contains the decimal form of the MQ reason code.