COBOL · File status code

File Status 08

What does File Status 08 mean in COBOL?

The program attempted a READ against a file that was opened in OUTPUT mode.

File Status 08IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

The program attempted a READ against a file that was opened in OUTPUT mode.

Fix

Check the OPEN mode. This is the mirror image of status 06 and usually comes from the same class of copy-paste mistake.

Pending source verification. Not yet checked against official documentation.

Related file status code