|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQRC_TRUNCATED_MSG_FAILED Error Code 2080 ..Urgent |
« View previous topic :: View next topic » |
Author |
Message
|
abiram8 |
Posted: Sat Mar 30, 2002 11:35 pm Post subject: |
|
|
 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 |
|
 |
StefanSievert |
Posted: Sat Mar 30, 2002 11:59 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|