CompCode (MQLONG)

The completion code of the operation being reported on.

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

    MQSTAT_TYPE_ASYNC_ERROR

    This is the completion 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 completion code that caused the connection to begin reconnecting.

    If the connection is currently connected the value is MQCC_OK.

    MQSTAT_TYPE_RECONNECTION_ERROR

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

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

CompCode is always an output field. Its initial value is MQCC_OK.

Parent topic: Fields for MQSTS