Posted: Wed Oct 02, 2002 7:11 am Post subject: MQ PUT Error Handling
Apprentice
Joined: 17 Jun 2002 Posts: 25
Hi Folks,
MQPUT may result in one of the following completion codes
1) MQCC_SUCCESS
2)MQCC_FAILED
3)MQCC_WARNING
I know that the message is not kept on the Q if the call returns MQCC_FAILED. Pls let me know if the message is put on the Q if the completion ocde returned is MQCC_WARNING and also how to handle MQCC_WARNING if message is not kept on the Q.
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
I just checked the Application Programming Reference. It gives several Reasons for the warning:
MQRC_MULTIPLE_REASONS - this happens when using a distribution list - some puts worked, some puts didn't
MQRC_PRIORITY_EXCEEDS_MAXIMUM - this puts the message and uses the qmgr max priority
MQRC_UNKNOWN_REPORT_OPTION - this uses a mask that tells the qmgr what to ignore/accept and puts the message. You might use this if you are putting a message to a different qmgr version.
MQRC_INCOMPLETE_GROUP, MQRC_INCOMPLETE_MSG - this puts the message and is probably a coding error on your part because you failed to end your group or message
MQRC_INCONSISTENT_PERSISTENCE, MQRC_INCONSISTENT_UOW - this puts the message and is probably also a coding error since you are using groups with some messages in/out the UOW and some persistent/non-persistent
There is a very good discussion on these reason codes at the back of the Application Programming Reference.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum