COBOL · File status code

File Status 19

What does File Status 19 mean in COBOL?

A REWRITE was issued against a file that is not open in I-O mode, or whose access mode does not support rewriting in this context.

File Status 19IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

A REWRITE was issued against a file that is not open in I-O mode, or whose access mode does not support rewriting in this context.

Fix

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

Pending source verification. Not yet checked against official documentation.

Related file status code