In this post, you’ll learn about the COBOL runtime Error Code 195 and the reason why you are receiving it
COBOL Error Code :
195
Reason for this Error in COBOL
DELETE/REWRITE not preceded by a read (Fatal) -Before a DELETE or a REWRITE statement can be successfully executed in sequential access mode the last input-output statement executed for the associated file must have been a successful read. In your code no read statement precedes your tried DELETE or REWRITE. -When your program has terminated, recode your program, making sure that the last input-output statement to be executed before the DELETE or REWRITE is a READ statement.
Leave a Reply