OpenTP1 Version 7 Tester and UAP Trace User's Guide

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

12.9.2 Notes on files

Organization of this subsection
(1) Lock of DAM files and TAM files
(2) Number of batch processing blocks in DAM files
(3) Closing DAM files and TAM files
(4) Lock of TAM files used by COBOL UAPs

(1) Lock of DAM files and TAM files

Locks can be placed on each DAM or TAM file. This means that a deadlock may occur between UAPs which can normally be executed in parallel without a deadlock occurring (because the UAPs have exclusive access to separate blocks within a DAM file, for example).

If a deadlock occurs, take one of the following actions:

(2) Number of batch processing blocks in DAM files

The offline tester processes files by block, regardless of the value set as the number of batch processing blocks when issuing the dc_dam_create or dc_dam_iopen function. However, no processing is performed when the specified value is less than zero.

(3) Closing DAM files and TAM files

Always issue the dc_dam_close or dc_tam_close function after issuing the dc_dam_open or dc_tam_open function.

If the service group is terminated without issuing the dc_dam_close or dc_tam_close function, a duplicate open error or lock error may occur at the DAM (or TAM) file when the service is re-executed. If an error occurs, enter the stop subcommand to terminate the service (or service group), then enter the start subcommand to reactivate the service.

(4) Lock of TAM files used by COBOL UAPs

COBOL UAPs cannot place locks on TAM files. When creating a UAP in COBOL, specify suppression of lock in the TAM definition statement in the offline tester environment definition.

If suppression is not specified, a lock error may occur when a service that accesses a TAM file is restarted. If an error occurs, enter the stop subcommand to terminate the service (or service group), then enter the start subcommand to restart the service.