COBOL Runtime Error Code – 008 Attempt to input from a file opened for

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

COBOL Error Code :

008

Reason for this Error in COBOL

Attempt to input from a file opened for OUTPUT (Recoverable) -You have tried to read from a file that is open for output only. -Close the file and open it with a mode such as I-O, which allows you to read from the file. As this error implies that your program logic contains a mistake, you might want to terminate the run and recode your program.