FreeKB - IBM MQ define channel command
IBM MQ - define channel command

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


Start the MQSC utility for the queue manager that you want to set up the server connection channel on. In this example, MANAGER01 is the name of the queue manager. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

Before creating a channel, use the display channel command to ensure the channel does not already exist.

The define channel command is used to create a channel. In this example, a server connection channel (SVRCONN) named CHANNEL01 is created. The channel name and channel type are the bare minimum keys that need to be defined.

echo "define channel ('CHANNEL01') chltype (SVRCONN)" | runmqsc MANAGER01


The following should be displayed.

AMQ8014I: IBM MQ channel created.


You can now display the channel using the runmqsc command. Next, you will want to define a listener for the channel.

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


Web design by yours truely - me, myself, and I   |   |