OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

4.2.2 Conditions for accessing a TAM table

Only the TAM table of a TAM file which exists at the node (machine) of the corresponding transaction branch can be accessed. Processing for TAM tables of each node is done independently of each other. Thus, TAM table names are managed for each node. When accessing a TAM table in a global transaction, use the table name in the node.

Organization of this subsection
(1) Access to a TAM table from a UAP and transaction functions
(2) Access to a TAM file and RPC modes

(1) Access to a TAM table from a UAP and transaction functions

The TAM table open and close functions can be used regardless of whether a transaction has been started. However, functions other than the TAM file open and close functions (e.g., table reference and update functions) must be used after a transaction is started. If a TAM file was opened before a transaction was started, terminate all the transactions started after the TAM file was opened, then close the TAM file.

(2) Access to a TAM file and RPC modes

To access a TAM file, all the RPC modes of the global transactions must be of synchronous response type. Operation is not ensured if a TAM table is accessed from an asynchronous-response-type RPC or nonresponse-type RPC.