DELETE/REWRITE not preceded by a read (Fatal)
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.