COBOL Runtime Error Code – 147 Wrong open mode or access mode for read/

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

COBOL Error Code :

147

Reason for this Error in COBOL

Wrong open mode or access mode for read/start (Recoverable) -You have tried to carry out a read or start operation on a file which has not been opened for INPUT or I-O, or which is not open at all. -Open the file for I-O or for INPUT and you should then be able to continue to run your program. However, as this error implies that your program logic contains a mistake, you might want to close any files which are open, execute a STOP RUN statement and then recode.