gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1617 Posts in 535 Topics by 779 Members - Latest Member: rhoronjeff@comcast.net December 01, 2022, 07:22:30 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  NULL device
gfx
gfxgfx
 

Author Topic: NULL device  (Read 7093 times)

afilhol

  • 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.

Alain

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
 

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