Posted: Wed Mar 12, 2003 3:43 pm Post subject: MQClient(NT) to OS/390 getting 2080 (Truncation Error)
Newbie
Joined: 12 Mar 2003 Posts: 1
I am using LotusScript and trying to amqsgetc a message that is 1070 bytes and am getting a truncation error. I would prefer to have a dynamic buffer size.
I do not normally work the API side of MQ so all comments are welcome.
There are couple of ways to get around to this problem
1) Increase the size of the buffer which holds the message to a value which you think thats BIG enough for ur app... ( default value which comes with amqget* programs are 200 bytes)
2) Issue a MQGET call with buffer length as Zero ,after the call DataLength parameter used in MQGET call will hold the actual length of the message , dynamically allocate the buffer based on the Datalength received.
But unfortunately , both the approaches requires some work to be done on the Code !!! .
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