COBOL · File status code
What does File Status 42 mean in COBOL?
The program issued CLOSE against a file that is not currently open.
The program issued CLOSE against a file that is not currently open.
Check for a duplicate CLOSE statement, or a CLOSE inside error-handling logic that runs even when OPEN never succeeded.