If the channel has stopped

Having issued the command

DIS CHSTATUS(QM1.TO.QM2) ALL, if the output shows the status of the channel is

STOPPED, then the channel could either have stopped due to an error or because of a command. Do the following:

  1. Determine why the channel stopped by checking the error logs. If the channel stopped due to an error, the error must be fixed.

    In addition, ensure that the channel has values specified for the retry attributes, SHORTRTY, and LONGRTY, so that in the event of transient failures such as network errors, the channel will attempt to restart automatically. For more information on channel retry, see the WebSphere MQ Intercommunication manual.

    The channel must be manually started for the changes to take effect.

  2. Issue the following command to start the channel again:

    START CHANNEL(QM1.TO.QM2)

On WebSphere MQ for z/OS, we can detect when a user stops a channel by using command event messages. For more information, see Understanding command events.