COBOL · File status code

File Status 41

What does File Status 41 mean in COBOL?

The program issued OPEN against a file it has already successfully opened without an intervening CLOSE.

File Status 41IBM Enterprise COBOL · Micro Focus · GnuCOBOL

Condition

The program issued OPEN against a file it has already successfully opened without an intervening CLOSE.

Fix

Check for a duplicate OPEN, often from a paragraph called more than once, or from error-handling logic that retries OPEN without checking whether it already succeeded.

Pending source verification. Not yet checked against official documentation.

Related file status code