MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Regarding MQ queue issue

    Posted Wed July 13, 2022 06:24 AM
    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.
    image.png
    The queue properties are set as follows,please check that also. 

    image.png

    Please let me know the solution for the issue as soon as possible.





    Thanks & Regards,


    Cateina Technologies
    Sneha Bobade
    Software Engineer

    Unit no 126, 1st Floor, Shivkrupa Industrial Estate, Vikhroli West, Mumbai 400 083
    M: +918928196335
    E: sneha@cateina.com | W: www.cateina.com
    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.


  • 2.  RE: Regarding MQ queue issue

    Posted Wed July 13, 2022 06:34 AM

    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
    ------------------------------



  • 3.  RE: Regarding MQ queue issue

    Posted Wed July 13, 2022 06:53 AM

    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
    ------------------------------



  • 4.  RE: Regarding MQ queue issue

    Posted Wed July 13, 2022 07:04 AM
    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
    ------------------------------



  • 5.  RE: Regarding MQ queue issue

    Posted Wed July 13, 2022 07:43 AM

    There are plenty of tools that will allow you to empty a queue using MQGET. Here are a couple of links that list them:-

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------



  • 6.  RE: Regarding MQ queue issue

    Posted Fri July 15, 2022 02:01 AM
    Hi Sneha,

    You can also try the method mentioned in the following IBM support page.

    MQRC 2080 - Resize buffer and continue to get MQRC_TRUNCATED_MSG_FAILED



    https://www.ibm.com/support/pages/mqrc-2080-resize-buffer-and-continue-get-mqrctruncatedmsgfailed

    Thanks & Regards,

    Prema U. L.
    Release Effectiveness MQ Team, India Software Lab,
    IBM India Pvt. Ltd., 1st Floor, Block D,
    EGL, Bangalore - 560071
    Mob No. : +91 9740588662



    ------------------------------
    Prema Laxmanachar
    ------------------------------



  • 7.  RE: Regarding MQ queue issue

    Posted Mon August 22, 2022 08:50 AM

    Hi Team, I have increased the size of Queue Message Length to 104857600 Bytes and when I am passing the large payload to the same MQ and getting Error converting character string, Please advise on the same.

    Thanks & Regards,

    Cateina Technologies
    Sneha Bobade
    Software Engineer

    Unit no 126, 1st Floor, Shivkrupa Industrial Estate, Vikhroli West, Mumbai 400 083
    M: +918928196335
    E: sneha@cateina.com | W: www.cateina.com
    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.


    On Wed, Jul 13, 2022 at 3:52 PM Sneha Bobade <sneha@cateina.com> wrote:
    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.
    image.png
    The queue properties are set as follows,please check that also. 

    image.png

    Please let me know the solution for the issue as soon as possible.





    Thanks & Regards,


    Cateina Technologies
    Sneha Bobade
    Software Engineer

    Unit no 126, 1st Floor, Shivkrupa Industrial Estate, Vikhroli West, Mumbai 400 083
    M: +918928196335
    E: sneha@cateina.com | W: www.cateina.com
    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.





  • 8.  RE: Regarding MQ queue issue

    Posted Mon August 22, 2022 02:49 PM

    I think all the answers are already covered in earlier replies on this thread. Please re-read them for full details. In summary you have the following choices:-

    • Edit the sample to increase the MQGET buffer size
    • Use a different tool to get all the messages off with
    • Use the CLEAR QLOCAL command if all you want to do is empty the queue of messages.

    Note that changing the maximum size of messages that are allowed to be MQPUT to the queue as you describe doing, does not have an impact on the buffer size used by an application doing an MQGET.

    If you are getting a different MQRC error code now, please do tell us what it is.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    Website: https://www.mqgem.com
    ------------------------------