COBOL · File status code

File Status 49

What does File Status 49 mean in COBOL?

A DELETE or REWRITE was issued against a file that is not currently open in I-O mode.

File Status 49IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

A DELETE or REWRITE was issued against a file that is not currently open in I-O mode.

Fix

Confirm the file is opened I-O, not INPUT-only, wherever DELETE or REWRITE is used.

Pending source verification. Not yet checked against official documentation.

Related file status code