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.  MQIACF_HANDLE_STATE parameter for inquire connection

    Posted Wed January 31, 2024 01:30 PM

    Does MQIACF_HANDLE_STATE apply to channel and queue both when there is something active ?

    regards

    deb



    ------------------------------
    Debabrata Ghosh
    ------------------------------


  • 2.  RE: MQIACF_HANDLE_STATE parameter for inquire connection

    Posted Wed January 31, 2024 07:49 PM

    Hi Deb,

    MQIACF_HANDLE_STATE is the equivalent of the MQSC keyword HSTATE. Here's the description of HSTATE from IBM Docs:-

    HSTATE

    The state of the handle.

    Possible values are:
    ACTIVE
    An API call from this connection is currently in progress for this object. If the object is a queue, this condition can arise when an MQGET WAIT call is in progress.
    If there is an MQGET SIGNAL outstanding, then this does not mean, by itself, that the handle is active.
    INACTIVE
    No API call from this connection is currently in progress for this object. If the object is a queue, this condition can arise when no MQGET WAIT call is in progress.

    The field only applies to the object handle output so it is about the queue opened by the connection, not about the connection itself. Therefore it does not have anything to do with a channel, it is only about a queue. It tells you whether the application in question is currently in a GET-wait call on this queue or not. That's it. That's all it tells you.

    Hope that makes sense, let me know if not or if you have any follow-up questions.

    Cheers,
    Morag



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



  • 3.  RE: MQIACF_HANDLE_STATE parameter for inquire connection

    Posted Thu February 01, 2024 09:43 AM

    Hi 

      Hi Morag, understood and thank you.

    regards,

    deb



    ------------------------------
    Debabrata Ghosh
    ------------------------------