Example
An example of establishing connections between CICS® TS for z/OS® generic resources.

In Figure 1, the first bind that flows from CICSL1 to CICSR is routed to whichever member of CICSR z/OS Communications Server decides is the most lightly loaded. In this example it goes to CICSR1. The predefined connections for the generic resource names CICSR and CICSL in CICSL1 and CICSR1 are used.
Affinities are created at SYSPLEXL and SYSPLEXR, associating CICSL1 with CICSR1. When you need to end these affinities, you may or may not need to do so explicitly—see Ending affinities and APPC connection quiesce processing. Until the affinities are ended, whenever CICSL1 tries to reconnect to CICSR, z/OS Communications Server routes the request to CICSR1; and whenever CICSR1 tries to reconnect to CICSL, z/OS Communications Server routes the request to CICSL1.

Figure 2 shows a bind flow from CICSL2 to CICSR. In this example z/OS Communications Server has, once again, chosen to route it to CICSR1, but it could have gone to one of the other members of CICSR.
The predefined connection for CICSR in CICSL2 is used. CICSR1 looks for the connection entry for CICSL. It is already in use, so a new connection is autoinstalled using the member name CICSL2.
Affinities are created at SYSPLEXL and SYSPLEXR, associating CICSL2 with CICSR1. If you need to end these affinities, you may or may not need to do so explicitly.

Figure 3 shows a third flow, this time from CICSR1 to CICSL. The existing affinity forces it to CICSL1.

Figure 4 shows a fourth flow, this time from CICSR2 to CICSL. It can go to any member of CICSL, but in this example z/OS Communications Server routes it to CICSL2.
The predefined connection entry for CICSL in CICSR2 is not in use and so it is used now. CICSL2 looks for the predefined connection entry for CICSR. It is in use, and so an entry for CICSR2 is autoinstalled.
Affinities are created at SYSPLEXL and SYSPLEXR, associating CICSL2 with CICSR2. If you need to end these affinities, you may or may not need to do so explicitly.