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 » MQRC_TRUNCATED_MSG_FAILED Error Code 2080 ..Urgent

Post new topic  Reply to topic
 MQRC_TRUNCATED_MSG_FAILED Error Code 2080 ..Urgent « View previous topic :: View next topic » 
Author Message
abiram8
PostPosted: Sat Mar 30, 2002 11:35 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 207
Location: India

Hi,

Iam working in the AIX V5 (with MQ Series5.2.1,MQSI 2.1)
How to get the messge from the Local Queue Say Q1 (Which is being Effected by MQRC_TRUNCATED_MSG_FAILED Error Code 2080) In AIX amqsget
dont work (because amqsget will work for only retriving small buffer of Data from the Queue but the data which the "Q1" gets is of large Buffer(ie) MQRFH2 + Topic + Queuemanager+ some Junk value ..etc ) nor Iam able to delete the Queue "Q1" Since it has the message.

but Iam able to read the Content of Queue Programatically

Note Q1 : Resides in AIXV5 not in the Windows NT

Any one Faced similar Problem Let me know the Solution


Thanks
R.Abiram
Back to top
View user's profile Send private message Send e-mail
StefanSievert
PostPosted: Sat Mar 30, 2002 11:59 pm    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Quote:

On 2002-03-30 23:35, abiram8 wrote:
Hi,

Iam working in the AIX V5 (with MQ Series5.2.1,MQSI 2.1)
How to get the messge from the Local Queue Say Q1 (Which is being Effected by MQRC_TRUNCATED_MSG_FAILED Error Code 2080) In AIX amqsget
dont work (because amqsget will work for only retriving small buffer of Data from the Queue but the data which the "Q1" gets is of large Buffer(ie) MQRFH2 + Topic + Queuemanager+ some Junk value ..etc ) nor Iam able to delete the Queue "Q1" Since it has the message.

but Iam able to read the Content of Queue Programatically

Note Q1 : Resides in AIXV5 not in the Windows NT

Any one Faced similar Problem Let me know the Solution


Thanks
R.Abiram

If you just want to delete the messages you have on the queue, try the following command from within RUNMQSC: CLEAR QL('Q1')
If no program has the queue in use, all messages will be removed.
As you stated correctly, the IBM provided sample programs only allow for messages that are max. 100 Bytes long. You could easily change the samples to allow for a bigger buffer size, or specify MQGMO_ACCEPT_TRUNCATED_MSG before doing the MQGET. This will give you an MQCC_WARNING and MQRC_TRUNCATED_MSG_ACCEPTED, but the message will be removed from the queue.
The Application Programming Guide/Reference contains the details.
Hope that helps,
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
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 » MQRC_TRUNCATED_MSG_FAILED Error Code 2080 ..Urgent
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.