OpenTP1 Version 7 Programming Guide

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

4.2.1 TAM file configuration

A TAM file comprises data items. Each data item is called a record. The TAM file keys and records are loaded into the memory. Fast access to a file from a UAP is enabled by accessing the key in the memory instead of accessing the actual file. The index part and data part are called a TAM table.

A TAM table consists of the following two parts:

Organization of this subsection
(1) Index types of TAM tables
(2) Environment for access to TAM tables

(1) Index types of TAM tables

Index types are categorized into a hash format and a tree format. A method of corresponding keys to records is different between the hash format and the tree format. When accessing a TAM table, verify the index type of the TAM table, then create a UAP. If access is made to a TAM table of a different index type, the UAP TAM access function returns with an error.

(2) Environment for access to TAM tables

TAM tables can be accessed only in online environment. TAM tables cannot be accessed in offline environment. To access a TAM table from a UAP, use the access mode specified in the TAM service definition. If another access mode is used, the UAP TAM access function returns with an error.

The figure below shows the TAM file configuration.

Figure 4-6 TAM file configuration

[Figure]