ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQClient(NT) to OS/390 getting 2080 (Truncation Error)

Post new topic  Reply to topic
 MQClient(NT) to OS/390 getting 2080 (Truncation Error) « View previous topic :: View next topic » 
Author Message
RonaldMeringer
PostPosted: Wed Mar 12, 2003 3:43 pm    Post subject: MQClient(NT) to OS/390 getting 2080 (Truncation Error) Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
mq_developer
PostPosted: Wed Mar 12, 2003 7:15 pm    Post subject: Reply with quote

Voyager

Joined: 18 Feb 2002
Posts: 82

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 !!! .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQClient(NT) to OS/390 getting 2080 (Truncation Error)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.