Defining multiple links to an IMS system
You can define more than one intersystem link between a CICS® and an IMS system by defining two or more connections (systems), with their associated session definitions, having the same NETNAME but different SYSIDs.
Although all the system definitions resolve to the same NETNAME, and therefore to the same IMS system, using a SYSID name in CICS causes CICS to allocate a session from the link with the specified SYSIDNT.
Recommendation: Define up to three links (that is, groups of sessions)
between a CICS and an IMS system, depending upon the application
requirements of your installation:
- A group of sessions for CICS-initiated distributed transaction processing (synchronous processing). CICS applications that use the
SEND/RECEIVEinterface can use the SYSIDNT of this group to allocate a session to the remote system. The session is held (“busy”) until the conversation is terminated. - A group of sessions for CICS-initiated asynchronous processing.
CICS applications that use the
STARTcommand can name the SYSIDNT of this group. CICS uses the first “nonbusy” session to ship the start request.IMS sends a positive response to CICS as soon as it has queued the start request, so that the session is in use for a relatively short period. Consequently, the first session in the group shows the heaviest usage, and the frequency of usage decreases towards the last session in the group. - A group of sessions for IMS-initiated asynchronous processing.
This group is also useful as part of the solution to a performance problem that can arise with CICS-initiated asynchronous processing. An IMS transaction that is initiated as a result of a
STARTcommand shipped on a particular session uses the same session to ship its “reply”STARTcommand to CICS. For the reasons given in (2), the CICSSTARTcommand is probably shipped on the busiest session, and, because CICS is the contention winner, the replies from IMS can create a backlog while waiting for a chance to use the session.However, facilities exist in IMS for a transaction to alter its default output session, and a switch to a session in this third group can reduce backlog problems.
The following series of tables provide an example of defining three groups of sessions on an IMS node. The tables contain examples of defining the session groups in both CICS Resource Definition Online (RDO) format and CICS macro format.
| RDO definition | Macro-level definition |
|---|---|
|
|
| RDO definition | Macro-level definition |
|---|---|
|
|
| RDO definition | Macro-level definition |
|---|---|
|
|
| RDO definition | Macro-level definition |
|---|---|
|
|