FreeKB - Put message on a remote queue in IBM MQ using amqsput command
Put message on a remote queue in IBM MQ using amqsput command

Home > Search


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

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 51944 in the box below so that we can be sure you are a human.




Comments