Problem:
Problems converting a fixed length line sequential file to variable length idxformat4.
The input file is LSEQ 662, fixed length. The output file is mf4 format variable length 662-4089.
Using the command:
rebuild infile, outfile -o:LSEQ,IND -t:mf4 -k:1-48 -r:v662-4089
getting the error message 'REBUILD aborted - Invalid key specification - key not contained in record'.
The -r option specifies the record format. However, the input file is fixed 662 and the output file is variable.
How do I specify the input and output record formats in the same command?
Resolution:
Sequential files do not have header information so the organization and record length must be specified. There is only one keyword for record length (-r) and it is not possible to specify a different record length on the input and output files.
To get around this, run the conversion in two steps:
Try running the conversion from lseq to mf4 first:
rebuild infile, outfile1 -o:LSEQ,IND -t:mf4 -k:1 45 -r:f662
Then convert fixed to variable:
rebuild outfile1,outfile2 -r:v662-4089
#netexpress
#ServerExpress
#COBOL
#RMCOBOL
#AcuCobol