Stopping a channel
Use the MQSC command STOP CHANNEL to request the channel to stop activity. The channel does not start a new batch of messages until the operator starts the channel again.
For information about restarting stopped channels, see Restarting stopped channels.
This command can be issued to a channel of any type except MQCHT_CLNTCONN.
We can select the type of stop you require:
Stop quiesce example
STOP CHANNEL(QM1.TO.QM2) MODE(QUIESCE)
This command requests the channel to close down in an orderly way. The current batch of messages is completed and the sync point procedure is carried out with the other end of the channel. If the channel is idle this command does not terminate a receiving channel.
Stop force example
STOP CHANNEL(QM1.TO.QM2) MODE(FORCE)
This option stops the channel immediately, but does not terminate the channel's thread or process. The channel does not complete processing the current batch of messages, and can, therefore, leave the channel in doubt. In general, consider using the quiesce stop option.
Stop terminate example
STOP CHANNEL(QM1.TO.QM2) MODE(TERMINATE)
This option stops the channel immediately, and terminates the channel's thread or process.
Stop (quiesce) stopped example
STOP CHANNEL(QM1.TO.QM2) STATUS(STOPPED)
This command does not specify a MODE, so defaults to MODE(QUIESCE). It requests that the channel is stopped so that it cannot be restarted automatically but must be started manually.
Stop (quiesce) inactive example
STOP CHANNEL(QM1.TO.QM2) STATUS(INACTIVE)
This command does not specify a MODE, so defaults to MODE(QUIESCE). It requests that the channel is made inactive so that it restarts automatically when required.
Parent topic: Getting started with objects