Mainframe question, IBM MQ for z/OS, MQ Version 9, Release 1.
I am doing an MQPUT with a
BufferLength value of 26. My
Buffer is much larger, of course, but if I tell the MQPUT to use
BufferLength = 26, why does it appear to write the full length of my
Buffer (which is 10000 bytes)?
There are two reasons I am convinced this is happening:
- When I look at the messages in the queue, the ones I wrote have the first 26 bytes contain my intended message data, and the next 9974 bytes contain LOW-VALUES (binary zero), which is how I had initialized the Buffer originally.
- When I later do an MQGET of that message using a 90 byte Buffer, I get an MQ warning, and the reason code MQRC_TRUNCATED_MSG_FAILED.
Of course, I can handle the error (and am doing this as a workaround), but why does it appear that the MQPUT is writing my entire
Buffer, vs. the 26 bytes I think I am telling it to write?
My thanks in advance...
------------------------------
Curt Gilker
------------------------------