As well as the database-specific information that you specify in an ACUFH configuration file, you also need to inform the File Handler of which database type it is working with when performing file handling operations. You do this by specifying the IDXFORMAT, which can be set using one of the following methods:
The supported values for the IDXFORMAT option are:
Set the option within your source code using the following syntax (replacing nn with the appropriate value from the table above):
$set IDXFORMAT"nn" Identification Division. Program-id. Dbc-demo. ... End program Dbc-demo.
Or specify the IDXFORMAT on the command line, during compilation:
cobol Dbc-demo.cbl IDXFORMAT"nn" NOGNT"";
Set the option within a File Handler configuration file:
[XFH-DEFAULT] IDXFORMAT=8 [FOLDER:C:\\files\\db2] IDXFORMAT=20 [FOLDER:C:\\files\\oracle] IDXFORMAT=19
To use the configuration file at run time, you must specify it in the EXTFH environment variable:
set EXTFH=c:\dbc\extfh.cfg
sets the file name to c:\dbc\extfh.cfg.