IBM MQ - PUT message on a remote queue using amqsput command

by
Jeremy Canfield |
Updated: October 02 2023
| IBM MQ articles
These examples are based on Linix. Change to the user account that is used to connect to the MQ Server. For example, let's say John Doe's account is used to connect to the MQ Server.
cd JohnDoe
Add the following to the end of the /home/<username>/.bash_profile file. For example: CLIENT.MANAGER02/TCP/mq.example.com(1414)
MQSERVER=CLIENT.<remote queue manager name>/TCP/<mq server hostname>(port)
Use the amqsput command to put a message onto a remote queue.
amqsput QUEUE01 MANAGER01
Sample amqsput0 start
target queue is QUEUE01
Enter some text, and press enter twice.
This is a test
Did you find this article helpful?
If so, consider buying me a coffee over at