COBOL Runtime Error Code – 022 Illegal or impossible access mode for OP

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

COBOL Error Code :

022

Reason for this Error in COBOL

Illegal or impossible access mode for OPEN (Recoverable) -The mode in which you are trying to open a file violates the General Rule of COBOL for that type of file; for example you might have opened a line sequential file in the I-O mode. -Open the file with a mode that is compatible with that type of file.