Reason (MQLONG)

The reason code of the operation being reported on.

The interpretation of Reason depends on the value of the MQSTAT Type parameter.

    MQSTAT_TYPE_ASYNC_ERROR

    This is the reason code resulting from a previous asynchronous put operation on the object specified in ObjectName.

    MQSTAT_TYPE_RECONNECTION

    If the connection is reconnecting or failed to reconnect this is the reason code that caused the reconnection to begin reconnecting.

    If the connection is currently connected the value is MQRC_NONE.

    MQSTAT_TYPE_RECONNECTION_ERROR

    If the connection failed to reconnect this is the reason code that caused the reconnection to fail.

    If the connection is currently connected, or reconnecting, the value is MQRC_NONE.

Reason is an output field. Its initial value is MQRC_NONE.

Parent topic: Fields for MQSTS