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
ISCEexpects 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 thePRNfield in the input FMH is not initialized byIMSAto be equal toT2, the CICS application must initiate a message switch to terminalT2from the transient data queue or start a new transaction namingT2as the primary resource.In this example, the output terminal
T2must be identified in the input data stream. IfIMSAhad initialized the PRN field in the input FMH toT2, CICS would have attached the transactionISCEwithT2as the primary resource, and a SEND to terminalT2could have been made directly. - In order for
IMSAto set thePRNfield, MFS would be required.