Starting a channel
To start a channel using the MQSC commands, use START CHANNEL.
Using the operations and control panels, starting from the initial panel, complete these fields
and press Enter:
Field |
Value |
Action |
6 (Start) |
Object type |
channel type (for example SENDER) or CHANNEL |
Name |
CHANNEL.TO.USE |
Disposition |
The disposition of the object. |
The Start a Channel panel is displayed. The text following the panel explains
how to use the panel.:
Figure 40. Starting a channel
Start a Channel
Select disposition, then press Enter to start channel.
Channel name . . . . . . . : CHANNEL.TO.USE
Channel type . . . . . . . : SENDER
Description . . . . . . . . : Description of CHANNEL.TO.USE
Disposition . . . . . . . . . P P=Private on MQ25
S=Shared on MQ25
A=Shared on any queue manager
Command ===> ________________________________________________________________
F1=Help F2=Split F3=Exit F9=SwapNext F10=Messages F12=Cancel
Select the disposition of the channel instance and on which queue manager
it is to be started.
Press Enter to start the channel.
Starting a shared channel
To start a shared channel, and keep it on a nominated channel initiator,
use disposition = S (on the START CHANNEL command, specify CHLDISP(FIXSHARED)). There can be only one instance of the shared channel running at a
time. Attempts to start a second instance of the channel will fail.
When you start a channel in this way, the following rules apply to that
channel:
- You can stop the channel from any queue manager in the queue-sharing group.
You can do this even if the channel initiator on which it was started is not
running at the time you issue the stop-channel request. When the channel
has stopped, you can restart it by specifying disposition = S (CHLDISP(FIXSHARED))
on the same, or another, channel initiator. You can also start it by specifying
disposition = A (CHLDISP(SHARED)).
- If the channel is in the starting or retry state, you can restart it by
specifying disposition = S (CHLDISP(FIXSHARED)) on the same or a different
channel initiator. You can also start it by specifying disposition = A (CHLDISP(SHARED)).
- The channel is eligible to be trigger started when it goes into the inactive
state. Shared channels that are trigger started always have a shared disposition
(CHLDISP(SHARED)).
- The channel is eligible to be started with CHLDISP(FIXSHARED), on any
channel initiator, when it goes into the inactive state. You can also start
it by specifying disposition = A (CHLDISP(SHARED)).
- The channel is not recovered by any other active channel initiator in
the queue-sharing group when the channel initiator on which it was started
is stopped with SHARED(RESTART), or when the channel initiator terminates
abnormally. The channel is recovered only when the channel initiator on which
it was started is next restarted. This stops failed channel-recovery attempts
being passed to other channel initiators in the queue-sharing group, which
would add to their workload.