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 » General IBM MQ Support » Buffer size

Post new topic  Reply to topic
 Buffer size « View previous topic :: View next topic » 
Author Message
TCV
PostPosted: Tue May 04, 2004 9:26 am    Post subject: Buffer size Reply with quote

Apprentice

Joined: 21 Aug 2003
Posts: 48

Hi,

On the Windows platform i have insufficiant buffer size for MQ GET.How can i increase the size.

Thanks
TCV
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 04, 2004 9:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

By changing your code.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
TCV
PostPosted: Tue May 04, 2004 9:31 am    Post subject: Hi Reply with quote

Apprentice

Joined: 21 Aug 2003
Posts: 48

Hi Jeff,

Is it the code of amqsget.c?? Could you tell me more details.

Thanks
TCV
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 04, 2004 9:38 am    Post subject: Re: Hi Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

TCV wrote:
]Could you tell me more details.


No.

Not without more detail from you.

What program is giving you this error? Is it amqsget.c?

Are you writing code in C? Java? Perl? VB? VB.Net? C#.Net? COBOL? PL/1? REXX?

Have you read the Application Programming Guide section on getting messages? Have you looked at the comments in amqsgetc? Have you look at the description of the MQGET call in the Application Programming Guide?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Tue May 04, 2004 12:05 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

More details are needed in order for people to help you...however.....

If you are using VB or VB.NET you will need to make sure that the buffer definition has been populated with something in order to give it a size that is > 0. Failure to do so will result in a buffer exception being thrown.

Dim buffer as string * 1

Will suffice but remember to always check for truncated messages.

IMHO every program that issues a get should check for truncated messages.
Back to top
View user's profile Send private message
TCV
PostPosted: Wed May 05, 2004 12:11 pm    Post subject: hi Reply with quote

Apprentice

Joined: 21 Aug 2003
Posts: 48

The MQ is running on Windows NT.I am not sure which language gmqsget Program it uses.In the installation directory isee manu language folders.Can anyone tell me how to findout which amquget is being used.

Thanks
TC
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 05, 2004 12:14 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What are you trying to do?

If you are just trying to use amqsget from the command prompt, to retrieve a message, then you are using amqsget.c.

BUT IN A COMPILED form. If you're not a C programmer, and don't have a C compiler, then you can't change the version of amqsget you are using to use a larger buffer.

You should look at other tools to get your message for you.
_________________
I am *not* the model of the modern major general.
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 » General IBM MQ Support » Buffer size
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.