How can I define a NULL device ?
In the past I used some thing like :
OPEN(Unit=ioLUN, FILE='NL:dummyFile.tmp')
Any write to the unit "ioLUN" was simply discarded thus producing no parasitic file.
Using such a trick is much simpler than adding many IF tests if you want to write or not depending on the context.
Alain