Put a message to the queue LQ1
Put a message on to the queue LQ1 by using the command-line interface.
About this task
IBM MQ comes with a sample application called amqsput. This application puts a message to a predefined queue.
To put a message to the queue by using the command-line interface, complete the following steps.
Procedure
- Use the amqsput sample application to put a message to queue LQ1, by typing the following command:
amqsput LQ1 QM1When the sample application starts, the following output is displayed:C:\>amqsput LQ1 QM1 Sample AMQSPUT0 start target queue is LQ1- Type Hello World and press Enter. You placed a message that contains the text "Hello World" on the queue LQ1 managed by the queue manager called QM1.
- To end amqsput, press Enter. The following output is displayed:
C:\>amqsput LQ1 QM1 Sample AMQSPUT0 start target queue is LQ1 Hello World Sample AMQSPUT0 end
What to do next
To get a message from the queue, see Getting a message from the queue LQ1.
Parent topic: Installing and configuring using the command line interface