In this post, you’ll learn about the COBOL runtime Error Code 152 and the reason why you are receiving it
COBOL Error Code :
152
Reason for this Error in COBOL
REWRITE on file not opened I-O (Recoverable) -You have tried a REWRITE on a file that is not open I-O. -Close the relevant file and open it for I-O operations. You should then be able to carry out the REWRITE operation successfully. 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