Example 6. IMS-to-IMS message switch routing with MFS
In the following figure, terminal T enters
a transaction to be processed in the backend IMS subsystem.

The reply from the back-end subsystem is to be routed back to the
original terminal that entered the transaction (T).
- Terminal
Tenters its input from a formatted screen. The terminal only needs to enter data. - After editing by
MID1, the message is placed on the message queues and looks like this:LTISC1 | TRANX | Data...The values
LTISC1andTRANXwere appended to the data by MFS. MOD2, to be used for editing the data stream that is sent toIMSB, is chained fromMID1, and is chained to another MID (MID4) withinIMSA. The data stream to be sent toIMSBlooks like this:FMH: DPN=SCHEDULERFMH: DPN=MID3,PRN=,RDPN=MID4,RPRN=TTRANX | Data...DPN=MID3can be supplied byMOD2or from a literal in the DOF associated withMOD2.PRN=is not needed, becauseTRANXis already in the data stream. It could have been supplied fromMOD2or its associated DOF.RDPN=MID4is specified, becauseMID4is chained toMOD2.RPRN=Tis again automatically inserted byIMSAas a default function of message switching and not overridden by MFS.LTISC1again has been stripped from the output message by the MFS MOD.
- Upon receipt of the data stream from
IMSA,IMSBedits the data usingMID3, because theDPNin the FMH specifiedMID3. - The application receives and processes the following:
TRANX | Data... - Output from the application program is sent by
IMSBtoIMSAin the following format:FMH: DPN=SCHEDULERFMH: DPN=MID4,PRN=T,RDPN=,RPRN= | Data... DPN=MID4andPRN=Tare automatically wrapped by IMS from theRDPNandRPRNvalues in the original FMH.- On receipt of this data stream,
MID4inIMSAedits the input and places the message on the queues for final output to terminalTin the following format:Data...Because
PRN=Tis supplied, IMS uses it as the destination. Because MFS is also used to format the input reply, thePRNis not appended to the data. - Because
MOD5is chained toMID4,MOD5is used to format the output to terminalT.
Several observations can be made about this example:
MID3inIMSBis not chained to a MOD. Therefore, the I/O PCB that the application program inIMSBsees does not contain a MODname to be used for output. IfMID3should have a chained MOD, the application ISRT call should have a blank MOD name to negate MFS editing on output.- The application in
IMSBhas not changed the MOD name for output. If it does, additional MFS format design is required. - The MPP in
IMSBcan be an already-existing program that also handles transactions from terminals connected toIMSB. The use of MFS can make the use of an ISC session transparent to the application. - The original input terminal is not held in response mode.