REXX Tips & Tricks, Version 2.80

Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs

The function STREAM() in Object REXX

In Classic REXX, the statement 

  myFileName = stream( "A:\test", "c"', "QUERY EXISTS" )

only returns an empty string if the drive A: is not ready. In 
Object-Oriented REXX this statement pops up this nice little OS/2 error 
box saying that the drive is not ready. 
[Tested with OBJREXX 6.00 12 Jul 1996] 
[Fixed in OBJREXX 6.00 26 Feb 1997 and newer versions (included in WARP 4 
Fixpack #6)] 
To avoid this, you need to put the AUTOFAIL (CONFIG.SYS statements used by 
OS/2) statement in your CONFIG.SYS file.   

Inf-HTML End Run - Successful