Problem:
Micro Focus supports several internal formats for indexed files, including:
IDXFORMAT"1"
IDXFORMAT"2"
IDXFORMAT"3"
IDXFORMAT"4"
IDXFORMAT"8"
An existing indexed file of unknown format can be examined by the "rebuild" command to determine its type. Use the "-n" flag of "rebuild" to report the file's properties without actually rebuilding the file, for example:
rebuild -n <filename>
In the output, rebuild indicates the IDXFORMAT in a field named "Format", but uses a different set of descriptions in place of:
IDXFORMAT"1"
IDXFORMAT"2"
IDXFORMAT"3"
IDXFORMAT"4"
IDXFORMAT"8"
Resolution:
The shell script attached to this Knowledgebase article creates and then compiles a COBOL program, which in turn creates files of various IDX format, then the shell script runs "rebuild -n" for each file to show how rebuild behaves. Just download the script and run it like: sh doit.sh
It reveals that rebuild reports files types as:
IDXFORMAT"1" --- C-ISAM
IDXFORMAT"2" --- Level II
IDXFORMAT"3" --- IDX-3
IDXFORMAT"4" --- IDX-4
IDXFORMAT"8" --- IDX-8
Attachments:
#ServerExpress
#AcuCobol
#netexpress
#COBOL
#RMCOBOL