Bad record length

You tried to give a record length for a file that is incompatible with that specified in the Open statement for the file, or you specified a negative record length.

For record-oriented I/O with random files, use the Len = reclen clause of the Open statement to define the record length. When opening the file for reading, reclen should be the same as when the file was opened for writing.