Writing a batch program to end affinities

If a generic resource member that owns affinities fails and cannot be recovered, the affinities must be ended.

Important: Use this technique only if it is impossible to restart the failed CICS® system.

In this situation, you cannot use the SET CONNECTION ENDAFFINITY or PERFORM ENDAFFINITY commands. Instead, you can use a batch program to clear the affinities owned by the failed member. The batch program must be written in assembler language. You can use the dump technique described in z/OS MVS IPCS Commands to find out which affinities the failed generic resource member owns.