COBOL · File status code

File Status 12

What does File Status 12 mean in COBOL?

An OPEN was attempted on a file the program has already opened and not yet closed.

File Status 12IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

An OPEN was attempted on a file the program has already opened and not yet closed.

Fix

Check for a duplicate OPEN statement, often introduced when merging paragraphs from two routines that each open the same file.

Pending source verification. Not yet checked against official documentation.

Related file status code