Skip to main content

Problem:

When attempting to perform a rebuild of an indexed file from the command line

(eg rebuild filename.dat) , the following error may be displayed:

      Error on Input File - Striped File Descrepancy

even though  file striping is not being used.

Resolution:

One possible way of rebuilding the file is to generate a new version of the .idx file.

In one previous instance where this error occurred, it seemed that the original .idx file was completely corrupted and was not able to provide any meaningful information to the filehandler.

Subsequently, it incorrectly determined that the file was a striped file.

This resulted in the creation of a new version of the .idx and match that with the original version of the .dat file and then rerun rebuild  in order to regenerate the index based on the data in the original .dat file.

The steps to achieve this are as follows:

1) Deleted the existing .idx file (eg del filename.idx)

2) Renamed the original .dat file out to a different filename (eg ren filename.dat filename1.dat)

3) Run a COBOL program which opened the file (filename) in I/O mode, purely in order to regenerate a new version of the file, both .dat and .idx.

4) Delete the new version of the .dat file (del filename.dat)

5) Rename the .dat file they had previously renamed out back to the original .dat file name (eg ren filename1.dat filename.dat)

6) Run rebuild - rebuild filename.dat

This means the newly created .idx is being used, which has sufficient information to rebuild the file, with the original version of the .dat thus generating a new version of the .idx containing all pertinent information for the .dat file.

Old KB# 1243

#RMCOBOL
#ServerExpress
#COBOL
#netexpress
#AcuCobol