MPLIR05529I File not open, open for input only or illegal WRITE attempted.

An attempt has been made to WRITE a file not marked as OUTPUT, or one that hasn't been OPEN(d). .
Resolution:
Correct the logical error and run again. PL/I RTS #fileio ctf tracing may provide you with additional information as to the root cause.
Module:
dele.pl1, put.pl1, rew,pl1, write.pl1