In this post, you’ll learn about the COBOL runtime Error Code 142 and the reason why you are receiving it
COBOL Error Code :
142
Reason for this Error in COBOL
File not open – cannot be closed (Recoverable) -You have tried to close a file which is not open. -You can abandon your attempt to close the relevant file and continue to run your program. However, as this error implies that your program logic contains a mistake, you might want to close any open files, execute a STOP RUN statement and then recode.
Leave a Reply