4271

From BR Wiki
Revision as of 02:41, 3 September 2024 by Gordon.dye (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary:

Operating System Error 71

Cause:

Incomplete record received/short record found.

Remedy:

Incomplete record: retry the LINPUT. Short record: copy the file to a work area using the -D option to remove the partial record, then copy back the work file to the original.If the above description clearly does not apply to your situation, there is a possibility that you are receiving operating system error 71 Network request not accepted. See your Operating System manual for more information on dealing with this error.

This error can also occur quite legitimately when reading files in External mode. Typically such files consist of a data stream of unknown length. When processing blocks of data in such files, the record length is set to chunk size and each READ accesses the next chunk of data. It is up to the program to decipher the actual layout of the data. In such cases, the last record read is often a fraction of the record length (chunk size) and an error 4271 is generated by the read.

When an error 4271 occurs reading an External file, simply save the value of CNT and erform a REREAD into the same buffer as the read. The data length will be the saved CNT value and the remainder of the buffer will be set to binary zeroes.