There are plenty of tools that will allow you to empty a queue using MQGET. Here are a couple of links that list them:-
Original Message:
Sent: Wed July 13, 2022 07:03 AM
From: Sneha Bobade
Subject: Regarding MQ queue issue
Hi Morag,
Actually this is a production environment so we are not able to stop application. Because so many processes are running in the backend with that applications.
So can you suggest something here in our scenario, so without stopping an application we can try that.
Thanks & Regards,
Sneha Bobade
------------------------------
Sneha Bobade
Original Message:
Sent: Wed July 13, 2022 06:53 AM
From: Morag Hughson
Subject: Regarding MQ queue issue
From your private message to me, you have said that you are trying to remove all the messages from the queue.
Instead of using a getting application to do this, you can instead use the MQSC command CLEAR QLOCAL(queue-name).
Ensure that you have stopped all the other getting applications (I see you have 22 applications currently with the queue open from your IPPROCS value of your DISPLAY QUEUE output) and then issue the command.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Wed July 13, 2022 06:33 AM
From: Morag Hughson
Subject: Regarding MQ queue issue
Hi Sneha,
Whenever you see an MQ reason code that you don't recognise, you can use the mqrc
tool to discover more about it. Type the following on your command line:-
mqrc 2080
This will show you that the reason code that MQ has returned to the amqsget
sample application means MQRC_TRUNCATED_MSG_FAILED
. This means that the MQGET
call that the amqsget
sample application made was using a buffer that was not big enough to contain the message from the queue.
If you view the source of the amqsget0.c
sample code, you can see that the Buffer in use is 65536 bytes long, so any message bigger than that cannot be retrieved using the amqsget
sample application. If you want to fix this, you can edit the sample source code and rebuild it into a new executable program. However, the sample program amqsget
doesn't seem like an appropriate program to be using to get messages of this size off the queue anyway.
Perhaps you can let us know what you are trying to achieve today. For example, are you just trying to remove all the messages from the queue? If you tell us what you want to achieve, we can guide you further.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Wed July 13, 2022 06:22 AM
From: Sneha Bobade
Subject: Regarding MQ queue issue
Hi team,
When I'm trying to get the message from the queue using amqsget command it throws me an error message of MQRC 2080.
PFB the screenshot for your reference.
The queue properties are set as follows,please check that also.

Please let me know the solution for the issue as soon as possible.
Thanks & Regards, | |
The company accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. |