COBOL Runtime Error Code – 023 Illegal or impossible access mode for CL

In this post, you’ll learn about the COBOL runtime Error Code 023 and the reason why you are receiving it

COBOL Error Code :

023

Reason for this Error in COBOL

Illegal or impossible access mode for CLOSE (Recoverable) -The mode in which you are trying to close a file is not possible for that type of file. -Close the file with a new access mode which is compatible with that type of file, or execute a STOP RUN statement and recode your program.