COBOL · File status code
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.
The program attempted a WRITE, REWRITE, or DELETE against a file that was opened in INPUT mode.
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.