OpenTP1 Version 7 Tester and UAP Trace User's Guide
The offline tester can simulate the DAM service for testing UAP access to DAM files. This facility is called the DAM service simulator.
Files created by an editor or by the function for simulating DAM file creation (dc_dam_create function) are handled by the TP1/FS/Direct Access file interface. The user must write an offline tester environment definition to associate each logical file name with the actual file.
At each update request from the UAP, a DAM file simulated by the offline tester is immediately updated (but writing is delayed). If the UAP terminates abnormally or if a rollback request occurs, the DAM file remains in updated status.
File update can be suppressed by option specification when starting the offline tester. Thus, the contents of a DAM file remain unchanged even if the UAP issues an update request function. If the data is re-entered after the update request, the file contents are the same as before the update request.
The user can also specify in the offline tester environment definition whether a lock is to be used for DAM files. Locks can only be placed on files, regardless of any specification made in a function.
Note that the DAM file is not closed when the dc_trn_unchained_commit function is issued in a UAP.
Figure 10-4 outlines the DAM service simulator.
Figure 10-4 Simulating the DAM service
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.