Several channels, one component
This example shows a set of related programs (a component) which can be invoked through two alternative channels.
As in the previous example, we have a set of inter-related programs that can be regarded as a component. However, this time there are two, alternative, external channels with which the component can be invoked. The top-level program in the component issues an EXEC CICS® ASSIGN CHANNEL command to determine which channel it has been invoked with, and tailors its processing accordingly.
The loose coupling
between the client program and the component
permits easy evolution. That is, the client and the component can
be upgraded at different times. For example, first the component could
be upgraded to handle a third channel, consisting of a different set
of containers from the first, or second channels. Next, the client
program could be upgraded (or a new client written) to pass the third
channel.