Intertransaction affinity
An intertransaction affinity is a relationship between transactions, of a specified duration, that requires them to be processed by the same target region. For example, you might have a pseudoconversation made up of three separate transactions, and each transaction passes data to the next transaction in the sequence via a temporary storage queue (which may be shared in the distributed model). You would then specify that all three transactions must be processed by the same target region, and that this affinity lasts for the duration of the pseudoconversation.
(If you did not define this affinity to CICSPlex® SM, each transaction could be routed to a different target region and would therefore be unable to access temporary-storage data left by the previous transaction.) The target region itself is selected by CICSPlex SM from the specified target scope.
Workload management and the IBM CICS Interdependency Analyzer for z/OS® understand affinities between BTS processes and activities. BTS itself does not introduce affinities, and discourages programming techniques that do, but it does handle existing code that may introduce affinities. You should define such affinities to workload management, so that it can make sensible routing decisions. It is particularly important to specify each affinity's lifetime; failure to do so may restrict unnecessarily workload management's routing options.
Workload management and the IBM CICS Interdependency Analyzer for z/OS do not understand affinities between routable non-terminal-related EXEC CICS START commands, or between DPLs not associated with a user id or a terminal. You should take steps either to remove any affinities from your applications, or to ensure that your applications honor any affinities.
Note that, if data is passed between transactions via the COMMAREA on the EXEC CICS RETURN command, no such affinity exists: the COMMAREA is passed back to the requesting region, and so can be passed to the target selected to process the next transaction in the sequence.