FreeKB - IBM MQ - alter channel command
IBM MQ - alter channel command

Home > Search

If you are not sure what an MQ Server Connection Channel is, check out our Getting Started tutorial. These examples are based on Linux. Switch to the mqm user.

su - mqm

 

This assumes you have already created a channel. Start the MQSC utility for the queue manager that you want to alter the server connection channel. In this example, MANAGER01 is the name of the queue manager. If you are not sure the name of the queue manager, use the dspmq command to display the queue managers. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

You will typically display the current configuration of the channel before altering the channel. Use the alter channel command to alter the channel configuration. In this example, CHANNEL01 is updated to have a description of "Hello World".

echo "alter channel (CHANNEL01) chltype (SVRCONN) DESCR (Hello World)" | runmqsc MANAGER01

 

In this example, CHANNEL01 is updated so that JohnDoe can connect to the channel. Then, grant JohnDoe the "connect" and "inq" permissions on MANAGER01 and the "all" permission on QUEUE01.

echo "alter channel(CHANNEL01) chltype(SVRCONN) mcauser('JohnDoe')" | runmqsc MANAGER01

 



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 e26a7 in the box below so that we can be sure you are a human.




Comments