Advantages of the enhanced method
There are several advantages in using the enhanced method, where possible, rather than the “traditional” method:
- Dynamic routing
- Using the “traditional” method, you cannot route the started
transaction dynamically. (For example, if the transaction on a terminal-related
START command is defined as DYNAMIC(YES) in the terminal-owning region, your
dynamic routing program is invoked for notification only—it cannot route
the transaction.)
Using the enhanced method, you can route the started transaction dynamically.
- Efficiency
- Using the “traditional” method, a terminal-related START command
issued in a TOR is function-shipped to the AOR that owns the transaction.
The request is then shipped back again, for routing from the TOR.
Using the enhanced method, the two hops to the AOR and back are missed out. A START command issued in a TOR executes directly in the TOR, and the transaction is routed without delay.
- Simplicity
- Using the “traditional” method, when a terminal-related START
command issued in a TOR is function-shipped to the AOR that owns the transaction
the “terminal-not-known” condition may occur if the terminal is not
defined in the AOR.
Using the enhanced method, because a START command issued in a TOR is not function-shipped to the AOR, the “terminal-not-known” condition does not occur. The START command executes in the TOR directly, and the transaction is routed just as if it had been initiated from a terminal. If the terminal is not defined in the AOR, a definition is shipped from the TOR.