Starting a channel on IBM i
We can start a channel from the Work with Channels panel or by using the STRMQMCHL command on the command line.
Listeners are valid for TCP only. For SNA listeners, we must configure your communications subsystem.
For applications to be able to exchange messages, we must start a listener program for inbound connections using the STRMQMLSR command.
For outbound connections, we must start the channel in one of the following ways:- Use the CL command STRMQMCHL, specifying the channel name, to start the channel as a process or
a thread, depending on the MCATYPE parameter. (If channels are started as threads, they are threads
of a channel initiator.)
STRMQMCHL CHLNAME(QM1.TO.QM2) MQNAME(MYQMGR)
- Use a channel initiator to trigger the channel. One channel initiator is started automatically when the queue manager is started. This automatic start can be eliminated by changing the chinit stanza in the qm.ini file for that queue manager.
- Use the WRKMQMCHL command to begin the Work with Channels panel and choose option 14 to start a channel.
Parent topic: Monitor and control channels on IBM i