Posted: Thu Jan 04, 2007 8:03 am Post subject: use of q (MA01) to get specific messages
Voyager
Joined: 01 Jul 2005 Posts: 82
I have a queue with 20K messages and want to get/browse specific message by MsgId (is there other way like AcctID?)
Message Id :A M Q Q M G R 0 1 E j ± ' G ¯ Ï
414D51204E5347413031202020202020456AB1272047AFCF
Get specific message by MessageId
q –iQueueName -g414D51204E5347413031202020202020456AB1272047AFCF –mQMGR01
I tried with
-gxm414D51204E5347413031202020202020456AB12720445AEC
-gm414D51204E5347413031202020202020456AB12720445AEC
Both did not return any message
I also tried using q -IQName -h regex. But messages which did not have regex, are also gone from QName queue. I was expecting messages not having the regex to stay in QName
Joined: 06 Jan 2004 Posts: 378 Location: Nowhere near a queue manager
-gxm.... works fine for me. I put four messages on a queue. Used q to browse them to see MSGIDs. Then used q -i -gxm<msgid> to select the third message and got what I expected. Then used q -I -gxm<msgid> to destructively GET the third message. Got the one I expected and the others are still on the queue.
WMQ 5.3 csd11
Solaris 9
--I was working on this reply before I saw your response that it's working for you too--
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