OpenTP1 Version 7 Programming Guide
The API (TX_ functions) complying with X/Open can be used with UAPs of OpenTP1. UAPs which perform transaction control with TX_ functions can use other vendors' RM having the specifications conforming to X/Open.
Table 5-6 lists the TX_ functions that can be used with UAPs of OpenTP1. Table 5-7 shows the relationship between OpenTP1 UAPs and TX_ functions.
Table 5-6 TX_ functions available with OpenTP1 UAPs
TX_ function name | Facility | |
---|---|---|
C language | COBOL language | |
tx_begin | TXBEGIN | Begin a global transaction |
tx_close | TXCLOSE | Close a set of resource managers |
tx_commit | TXCOMMIT | Commit a global transaction Chained mode (TX_CHAINED specified) Unchained mode (TX_UNCHAINED specified) |
tx_info | TXINFORM | Return global transaction information |
tx_open | TXOPEN | Open a set of resource managers |
tx_rollback | TXROLLBACK | Roll back a global transaction Chained mode (TX_CHAINED specified) Unchained mode (TX_UNCHAINED specified) |
tx_set_commit_return | TXSETCOMMITRET | Set commit_return characteristics |
tx_set_transaction_control | TXSETTRANCTL | Set transaction_control characteristics |
tx_set_transaction_timeout | TXSETTIMEOUT | Set transaction_timeout characteristics |
Table 5-7 Relationship between OpenTP1 UAPs and TX_ functions
TX_ function name | SUP | SPP | MHP | UAP that handles offline work | ||||
---|---|---|---|---|---|---|---|---|
Not within transaction processing range | Within transaction processing range (root) | Not within transaction processing range | Transaction range | Not within transaction processing range | Within transaction processing range (root) |
|||
Root | Not root | |||||||
tx_begin | Y | -- | Y | -- | -- | -- | -- | -- |
tx_close | Y | -- | Y | -- | -- | -- | -- | -- |
x_commit (TX_CHAINED specified) | -- | Y | -- | Y | -- | -- | -- | -- |
tx_commit (TX_UNCHAINED specified) | -- | Y | -- | Y | -- | -- | -- | -- |
tx_info | Y | Y | Y | Y | Y | -- | -- | -- |
tx_open | Y | Y | -- | -- | -- | -- | ||
tx_rollback (TX_CHAINED specified) | -- | Y | -- | Y | -- | -- | -- | -- |
tx_rollback (TX_UNCHAINED specified) | -- | Y | -- | Y | Y | -- | -- | -- |
tx_set_commit_return | Y | Y | Y | Y | Y | -- | -- | -- |
tx_set_transaction_control | Y | Y | Y | Y | Y | -- | -- | -- |
tx_set_transaction_timeout | Y | Y | Y | Y | Y | -- | -- | -- |
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.