COBOL · File status code

File Status 10

What does File Status 10 mean in COBOL?

A sequential READ found no next logical record. This is the normal way a program detects it has reached the end of a file.

File Status 10IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

A sequential READ found no next logical record. This is the normal way a program detects it has reached the end of a file.

Fix

No fix needed if your AT END or NOT AT END logic is written correctly. If the program is ending earlier than expected, check for an accidental extra READ, or a file that is genuinely shorter than expected upstream.

Pending source verification. Not yet checked against official documentation.

Related file status code