Please login or register.

Login with username, password and session length
gfx gfx
1619 Posts in 535 Topics by 781 Members - Latest Member: chekyl43 January 27, 2023, 06:44:13 AM
gfx* Home | Help | Search | Login | Register | gfx
Absoft User Forum  |  Support  |  General  |  NULL device

Author Topic: NULL device  (Read 7159 times)


  • Guest
NULL device
« on: July 08, 2007, 09:56:38 AM »
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.


Mike Linacre

  • Sr. Member
  • ****
  • Posts: 259
Re: NULL device
« Reply #1 on: July 15, 2007, 07:47:11 PM »
Alain, if you add IOSTAT= to all your I/O routines, then you can give any invalid file name and simply ignore the IOSTAT code returned by the I/O calls.

Absoft User Forum  |  Support  |  General  |  NULL device

gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!