If using MQ Explorer
Put a message in a local queue.
- In the left panel of MQ Explorer, expand Queue Managers > your local queue manager.
- Select the Queues folder.
- Right-click on a queue and select Put Test Message.
- Type a message, such as Hello World, and select Put message.
In this example, the message Hello World is put into QUEUE01.
You can also use MQ Explorer to view the messages in a queue.
If using Linux command line
Switch to the mqm user.
~]# su - mqm
Start the amqsput utility. This assumes the name of the local queue is QUEUE01 and the name of the manager queue is MANAGER01.
~]# /opt/mqm/samp/bin/amqsput QUEUE01 MANAGER01
Type a message, such as Hello World, and press enter twice.
Return to your user account.