Hi,
In MQGET() call we pass buffer to receive the msg.
Is there any way to find the size of the message before calling
MQGET(). So that we can create the buffer of that size and pass it to MQGET().
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
You can do a browse operation prior to the get. Alterantively, do the get but supply a buffer that is too small. The MQGET will fail but will return the size of the required buffer. You can then re-execute the get with a larger buffer. You will have to handle the TRUNCATED MSG return code yourself until a big enough buffer is supplied.
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