Skip to main content

Problem:

Used rebuild infile, outfile but still having problems.

Resolution:

What the above command does is use the index tree to recover the file and will only

recover records for which there is an index entry.

The correct/recommended Rebuild command to use to recover a corrupt file is:  

Rebuild infile, outfile -d -e

which will recover all valid records.

The -d option tells Rebuild to ignore the

index tree and scan for all valid data records that will be included in the outfile.

The -e option indicates to Rebuild to continue to process the input file when an

illegal duplicate record is encountered.  All illegal duplicates are discarded from the

outfile and are directed to a file with the base name of the infile with the extension

.err.

Old KB# 2173

#AcuCobol
#RMCOBOL
#netexpress
#COBOL
#ServerExpress