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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.