How to put message in IBM MQ queue

we can use mq provided sample program amqsput to put the message into the queue . refer below screen

In the same way if we want to get the message from the queue use amqsget .

amqsget TESTQ QM1

To browse the message without getting out then use below command

amqsbcg TESTQ QM1

Syntax: 1st parameter is Queue name and 2nd parameter is the QMGR name

In the AIX machine the path is /usr/mqm/samp/bin and in Linux/Solaris it is /opt/mqm/samp/bin

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *