Transaction manager

z/TPFDF product support of the z/TPF transaction manager (TM) ensures a consistent view of a database in an application program. This consistent view of the database ensures that either all or none of the file changes have been completed; there is no such thing as a partially updated database.

The TM verifies a consistent database view by using a set of application programming interfaces (APIs) for the application program to define both the scope of a file transaction as well as actions to be taken for the file transaction.

The TM provides a subset of the TX functions (defined by the X⁄Open TX interface) to the application to begin and end (that is, commit or roll back) a transaction.

Table 1. Begin and end transactions
C Function Assembler Macro
tx_begin TXBGC
tx_commit TXCMC
tx_rollback TXRBC

Additionally, the TM provides the following extension (to X⁄Open) functions to the application to suspend or resume a transaction.

Table 2. Suspend and resume transactions
C Function Assembler Macro
tx_suspend_tpf TXSPC
tx_resume_tpf TXRSC