OpenTP1 Version 7 Programming Guide

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

8.5.4 Details of programs specific to each sample

This subsection explains the specifications specific to each sample.

Organization of this subsection
(1) Programs of Base sample
(2) Programs of DAM sample
(3) Programs of TAM sample
(4) Notes on using sample programs

(1) Programs of Base sample

With the Base sample, the database (DataBase) is created inside the user server process and retained while the process is resident. Transaction start processing and synchronization point processing are performed on the server UAP during the update process.

(2) Programs of DAM sample

The programs of DAM sample are the same as the programs of Base sample except the following three points:

  1. The program structure of the server UAP written in COBOL is different from the Base sample. The figure below shows the program structure of the DAM sample UAPs written in COBOL.

    Figure 8-10 Program structure of client and server UAPs (DAM sample written in COBOL language)

    [Figure]

  2. Since the DAM sample creates a database (DataBase) using an offline program (dam_mkfs), the database is retained even after the user server process terminates.
  3. Transaction start processing and synchronization point processing are performed on the server UAP during the process (reference or update).

(3) Programs of TAM sample

The programs of TAM sample are the same as the programs of Base sample except the following three points:

  1. The program structure of the server UAP written in COBOL is different from the Base sample. For the program structure of the TAM sample UAPs written in COBOL, see Figure 8-10.
  2. Since the TAM sample creates a database(DataBase) using an offline program (tam_mkfs), the database is retained even after the user server process terminates.
  3. Transaction start processing and synchronization point processing are performed on the server UAP during the process (reference or update).

(4) Notes on using sample programs