OpenTP1 Version 7 Programming Guide
8.5.4 Details of programs specific to each sample
(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:
- 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)
- 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.
- 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:
- 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.
- 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.
- 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
- When OpenTP1 is activated using sample programs, the KFCA00901-W message may appear. Ignore the message if it is about resource managers that are not used.
- The sample program makefile explicitly specifies /bin/cc as the C compiler. If /bin/cc does not exist or if a C compiler other than /bin/cc is used, specify the absolute path of the C compiler to be used on makefile before using the program.
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.