Design overview
Figure 1 shows the overall
design of this component.
Figure 1. Transaction routing
CICS® executes
the CICS relay program DFHAPRT (which invokes the user-replaceable
dynamic transaction routing program) as follows: 
- When a transaction defined with the value DYNAMIC(YES) is initiated.
- When a transaction definition is not found and CICS uses the special transaction defined on the DTRTRAN system initialization parameter.
- Before routing a remote, terminal-oriented, transaction initiated by ATI.
- If an error occurs in route selection.
- At the end of a routed transaction, if the initial invocation requests re-invocation at termination.
If CICS has been generated with the appropriate options for intercommunication,
the initialization of CICS with the ISC=YES system initialization
parameter specified causes the following modules to be loaded:
- DFHXTP (transaction routing data transformation program)
- DFHZCXR (which includes the DFHZTSP CSECT, the terminal sharing program).
The entry point addresses of these modules are contained in the optional features list that is addressed by CSAOPFLA in the CSA.
The rest of this section is mainly concerned with APPC transaction routing, which occurs when an APPC device is linked through an LU6.2 session to a transaction that is defined as remote.