On Fri, 29 Nov 2013 20:59:26 +1100, Paul Gillis wrote:

>I have been using Regina Rexx for some years, started when I was to teach a
>Rexx course and wanted a good Windows Rexx capability. The OS interfaces are
>different, but easy enough to use, and it is well documented. It can be
>found at http://regina-rexx.sourceforge.net/ it is obviously being updated
>regularly as I am using 3.5 and 3.7 is available and the price is right.
>Sample of I/O code below. Other OS interfaces I have not used, no need yet.
> 
IOW, it uses Rexx-standard I/O instead of z-peculiar I/O.

>/* Read the file into an array */
>INFILE1  = "C:\WineBase32\TextFile\WineList.csv"
>lines = 0
>do while lines(infile1)>0
>   lines = lines + 1
>   iline.lines = linein(infile1)
>end
>iline.0 = lines
> 
(But it would be useful to be able to read a file into a compound
variable with a single instruction rather than coding a loop.
Hmmm... I wonder how this works if infile is a terminal?)

Disastrously, the z/OS Rexx provides two instances of the
standard Rexx I/O.  One, adjunct to the Rexx compiler, deals
only with legacy data sets; the other, adjunct to Unix System
services, deals only with UNIX files.  Conway's law.  I wonder
whether CMS Rexx deals alike with MDFS, SFS, and BFS flles, 
accessing SFS files via directory paths rather than filemodes.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to