MQString MQGetStatusString(const MQStatus status);
The status returned by any Message Queue function that returns an MQStatus.
Having found that a Message Queue function has not returned successfully, you can determine the reason why by passing the return status. This function will return an MQString describing the error associated with the specified status.
You must call the MQFreeString function to free the MQString returned by the MQGetStatusString function when you are done.