Example 5. IMS-terminal-to-other-terminal message switch routing
The following figure is similar to Example 4; however, the back-end subsystem is CICS® or a user-written subsystem.

The description of the activities taking place in IMS in this example parallels the description in Example 1 exactly. The other subsystem is of interest is described.
- Assume the other subsystem is CICS.
Remember from Example 1 that the data stream sent from IMS looks like this:
FMH: DPN=ISCE,PRN=,RDPN=,RPRN=T | Data...
- As in Example 3, CICS must
have a transaction code defined as
ISCE
.The data is formatted in the way in which
ISCE
expects to receive it. The IMS terminal operator who is entering the transaction should understand what that format is to be. CICS, upon receiving the data stream, must invoke a transaction namedISCE
, specifically written for the ISC environment. This transaction uses the data in the input FMH and obtains the input data through the RETRIEVE interface. Because thePRN
field in the input FMH is not initialized byIMSA
to be equal toT2
, the CICS application must initiate a message switch to terminalT2
from the transient data queue or start a new transaction namingT2
as the primary resource.In this example, the output terminal
T2
must be identified in the input data stream. IfIMSA
had initialized the PRN field in the input FMH toT2
, CICS would have attached the transactionISCE
withT2
as the primary resource, and a SEND to terminalT2
could have been made directly. - In order for
IMSA
to set thePRN
field, MFS would be required.