COBOL · File status code

File Status 06

What does File Status 06 mean in COBOL?

The program attempted a WRITE, REWRITE, or DELETE against a file that was opened in INPUT mode.

File Status 06IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

The program attempted a WRITE, REWRITE, or DELETE against a file that was opened in INPUT mode.

Fix

Check the OPEN statement's mode against every I/O verb used later in the paragraph. This is usually a copy-paste error from a read-only routine.

Pending source verification. Not yet checked against official documentation.

Related file status code