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
T
enters 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
LTISC1
andTRANX
were 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 toIMSB
looks like this:FMH: DPN=SCHEDULER
FMH: DPN=MID3,PRN=,RDPN=MID4,RPRN=T
TRANX | Data...
DPN=MID3
can be supplied byMOD2
or from a literal in the DOF associated withMOD2
.PRN=
is not needed, becauseTRANX
is already in the data stream. It could have been supplied fromMOD2
or its associated DOF.RDPN=MID4
is specified, becauseMID4
is chained toMOD2
.RPRN=T
is again automatically inserted byIMSA
as a default function of message switching and not overridden by MFS.LTISC1
again has been stripped from the output message by the MFS MOD.
- Upon receipt of the data stream from
IMSA
,IMSB
edits the data usingMID3
, because theDPN
in the FMH specifiedMID3
. - The application receives and processes the following:
TRANX | Data...
- Output from the application program is sent by
IMSB
toIMSA
in the following format:FMH: DPN=SCHEDULER
FMH: DPN=MID4,PRN=T,RDPN=,RPRN= | Data...
DPN=MID4
andPRN=T
are automatically wrapped by IMS from theRDPN
andRPRN
values in the original FMH.- On receipt of this data stream,
MID4
inIMSA
edits the input and places the message on the queues for final output to terminalT
in the following format:Data...
Because
PRN=T
is supplied, IMS uses it as the destination. Because MFS is also used to format the input reply, thePRN
is not appended to the data. - Because
MOD5
is chained toMID4
,MOD5
is used to format the output to terminalT
.
Several observations can be made about this example:
MID3
inIMSB
is not chained to a MOD. Therefore, the I/O PCB that the application program inIMSB
sees does not contain a MODname to be used for output. IfMID3
should have a chained MOD, the application ISRT call should have a blank MOD name to negate MFS editing on output.- The application in
IMSB
has not changed the MOD name for output. If it does, additional MFS format design is required. - The MPP in
IMSB
can 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.