I am running IBM Websphere MQ on a Windows Server 2008 machine. Now I would like to know how you can view the content of messages in a specific queue, for example:
There are 2 messages in the SYSTEM.DEAD.LETTER.QUEUE. How do I view those messages so that I can see what is wrong with them?
I read up on IBM's website that you can do it like this:
C:\Program Files (x86)\IBM\WebSphere MQ\tools\c\Samples\Bin>amqsbcg SYSTEM.DEAD.LETTER.QUEUE
TLINKTT.QMAN
But when I run this, I get the following error:
AMQSBCG0 - starts here
**********************
MQOPEN - 'SYSTEM.DEAD.LETTER.QUEUE'
MQGET 1, failed with CompCode:2 Reason:2016
MQCLOSE
MQDISC
Is this because the queue is in use? How else do I view messages in a Queue when a queue is in use?
Thanks