COBOL · File status code
What does File Status 18 mean in COBOL?
The physical file ended before a complete record could be read, or the file was opened in a mode inconsistent with its actual organization.
The physical file ended before a complete record could be read, or the file was opened in a mode inconsistent with its actual organization.
Verify the file's actual organization (line sequential vs. fixed/variable block) matches the SELECT clause, and check for a truncated file.