TMF Introduction (G06.26+)

Transaction Coordination
HP NonStop TMF Introduction522414-002
2-7
Transaction Definition by the Application
Begin Transaction
The application begins a new TMF transaction, indicating that all subsequent database
access is part of the transaction.
TMF generates a transaction identifier and sets up all the internal work to begin
monitoring a transaction, and then associates the application’s subsequent access of
audited database files with the transaction.
End Transaction
The application ends (commits) a TMF transaction, indicating that all the database
changes since the begin-work designation are permanent.
TMF makes permanent all the work performed for the duration of the transaction on
audited files.
Figure 2-4. Transaction Control in a Pathway Environment
SCREEN
TCP
Requester
...
BEGIN-TRANSACTION.
...
SEND MESSAGE MSG-OUT...
REPLY CODE...
...
END-TRANSACTION.
...
ON-ERROR-PROCEDURE.
ABORT-TRANSACTION.
...
Server
TMF
...
DECLARE CURSOR...
...
READ MSG-IN...
OPEN cursor...
...
FETCH...
...
UPDATE...
CLOSE cursor...
...
WRITE REPLY-
MSG...
...
SQL- HP COBOL
Program
Database
Log of
Transaction
Records
File System
Transaction
Entry
Program
COBOL
VST008.vsd