|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to read MQCACF_LAST_PUT_DATE queue property |
« View previous topic :: View next topic » |
Author |
Message
|
sebastia |
Posted: Sat Sep 23, 2006 11:58 am Post subject: how to read MQCACF_LAST_PUT_DATE queue property |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
We are using C code and MQAI - Administration Interface.
We are trying to read some queue properties,
and we are successful with "MQIA_CURRENT_Q_DEPTH" - queue depth.
Now, we need to read the LPUTDATE timestamp ...
and always get "2309 0x00000905 MQRC_SELECTOR_NOT_PRESENT".
We are using the Selector ...
"mqAddInquiry ( adminBag, MQIACF_ALL, @ cc, @ rc ) ;"
Has anybody a sample code on how to do this ?
Thanks a lot. Sebastian. |
|
Back to top |
|
 |
sebastia |
Posted: Sat Sep 23, 2006 12:08 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Well, we have improved a little :
we were using "MQCMD_INQUIRE_Q"
and it had to be "MQCMD_INQUIRE_Q_STATUS".
Now it is ok (code similar to "AMQSAILQ.C" in /samples/c/ )
but ...
If we want QUEUE_DEPTH and PUT_DATE ..
then
shall we issue TWO mqExecute() ??
Cheers. Sebastian. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Sep 23, 2006 2:51 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Inquire Queue Status is the "same" as the MQSC command Display QStatus.
Do you want "LastPutDate"?
That's an attribute of the PCF response message.
You can either put MQCIACF_ALL, MQCACF_LAST_PUT_DATE, or MQIACF_MONITORING into the PCF command to get it to return LastPutDate in the response. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
sebastia |
Posted: Sat Sep 23, 2006 4:07 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
.
Well, I did make it work with TWO mqExecute() calls
but don't like it :
have to create lots of Bags, manage lots of RC's, etc
a) can it be done with ONQ mqExecute ?
b) any sample ?
( ) |
|
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
|
|
|
|