gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1519 Posts in 504 Topics by 735 Members - Latest Member: Rosy December 02, 2020, 07:52:16 AM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  NULL device
gfx
gfxgfx
 

Author Topic: NULL device  (Read 6238 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

  • Full Member
  • ***
  • Posts: 236
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!