OpenTP1 Version 7 Programming Guide

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

4.1.6 Creating physical files (operation from a UAP that handles offline work)

Physical files are created in offline mode. Allocate a physical file to the OpenTP1 file system by using the function dc_dam_create() [CBLDCDMB('CRAT')]. Set the following information upon the allocation:

When a physical file is allocated, the file descriptor is returned.

The file descriptor is used for processing after the file is opened. The file descriptor returned by the function dc_dam_create() is available with the following functions:

The file descriptor returned by the function dc_dam_create() is unavailable with the following functions and an error is returned if used:

The figure below shows the procedure for creating a DAM file as the first physical file in the OpenTP1 file system.

Figure 4-4 Procedure for creating DAM file

[Figure]