Skip to main content

How to change the default naming of a index file

  • February 15, 2013
  • 0 replies
  • 3 views

Problem:

On UNIX the file name default is file-base-name for the data portion aand file-base-name.idx for the index portion of a file.  The following explains how to change these default naming converntions.  If you want to change the filename typeu

Resolution:

In the extfh.cfg configuration file you can specify the option IDXNAMETYPE.  The IDXNAMETYPE option specifies the format of the filename type for both the data file and index file,present.

if presnet.

IDXNAMETYPE={0|1|2}

where the parameters specify how the the name of the index file (if present) is derived from that of the data file:

0 By discarding any extension and adding the extension .idx

1 By simply adding the extension .idx

2 Like 1 except that the data file name is modified by adding the extension .dat

For example, if the data file name presented to the File Handler is abc.def, the options shown above give the following data and index file names:

0    abc.def and abc.idx

1    abc.def and abc.def.idx

2     abc.def.dat and abc.def.idx

Default:    1

Old KB# 2088

#netexpress
#COBOL
#ServerExpress
#RMCOBOL
#AcuCobol