Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQGET() buffer size is smaller than actual message size

Status
Not open for further replies.

bluecity

Programmer
Feb 16, 2001
3
US
I have a smaller buffer size than actual message size.
So, I get "MQRC_TRUNCATED_MSG_FAILED". If I reassign the bigger buffer and call MQGET() again. Can I get whole message, or only left over from my last MQGET() call?

thanks
 
If you get the Truncated msg failed error the original message is still left on the queue - in its entirety. However, if you specify ACCEPT_TRUNCATED_MSGS as a Get option the complete message is removed from the queue even though your program only gets data up to the length of your buffer.

Cheers,
Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top