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 » amqsget - Error 2080

Post new topic  Reply to topic
 amqsget - Error 2080 « View previous topic :: View next topic » 
Author Message
hin3407
PostPosted: Thu Nov 20, 2008 6:58 am    Post subject: amqsget - Error 2080 Reply with quote

Centurion

Joined: 17 Oct 2006
Posts: 120

I am using AMSGET to browse messages on AIX, and getting a 2080 error for message truncation.

Any ideas how I can still use this sample program without getting that error to browse the existing messages?
The Version of MQ is 6.0.2.2
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 20, 2008 7:06 am    Post subject: Re: amqsget - Error 2080 Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hin3407 wrote:
Any ideas how I can still use this sample program without getting that error to browse the existing messages?


Yes - change the code to a) have a buffer large enough to take the message or b) change the code to accept truncated messages.

It's only a sample - you can do what you want with it.

You might also consider some of the support pacs which provide more sophisticated message handling, but are equally free of cost. Or a commercial product.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Fri Nov 21, 2008 4:59 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

And you should consider applying maintenance. You are at 6.0.2.2 and current is 6.0.2.5. Add yourself to the notifications when fixes get released.
Back to top
View user's profile Send private message AIM Address
alechko
PostPosted: Sat Nov 22, 2008 6:48 am    Post subject: Reply with quote

Apprentice

Joined: 12 Jan 2005
Posts: 37

You can also use the sample program amqsgbr instead which only browses the messages but accepts truncated messages.
Notice that it will only show the first 50 chars of the buffer.

Cheers,
Alik
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Sat Nov 22, 2008 11:05 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
getting a 2080 error

To be more precise, WMQ is returning a 2080 Reason Code to your application program.

Your application may see a Reason Code as an error, or it may not.

Reason Codes are documented in the WMQ Messages manual.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
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 » amqsget - Error 2080
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.