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------------------------------
Original Message:
Sent: Wed January 31, 2024 01:29 PM
From: Debabrata Ghosh
Subject: MQIACF_HANDLE_STATE parameter for inquire connection
Does MQIACF_HANDLE_STATE apply to channel and queue both when there is something active ?
regards
deb
------------------------------
Debabrata Ghosh
------------------------------