COBOL · File status code

File Status 48

What does File Status 48 mean in COBOL?

A WRITE was issued against a file that is not currently open in OUTPUT, I-O, or EXTEND mode.

File Status 48IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

A WRITE was issued against a file that is not currently open in OUTPUT, I-O, or EXTEND mode.

Fix

Confirm the OPEN mode and that OPEN actually succeeded before this WRITE executes.

Pending source verification. Not yet checked against official documentation.

Related file status code