Re: Rexx (was: OT? ... "deliberately unfriendly")

2013-11-29 Thread Arthur T.
On 29 Nov 2013 08:47:35 -0800, in bit.listserv.ibm-main 
(Message-ID:<0895521555071176.wa.paulgboulderaim@listserv.ua.edu>) 
paulgboul...@aim.com (Paul Gilmartin) wrote:


(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?)


For anyone just joining, this was about Regina REXX on a 
PC.


To do a single read of a file into a compound variable:

 
call rxfuncadd 'sysloadfuncs','RexxUtil','sysloadfuncs'
call sysloadfuncs
call RegStemRead file, inline.
 

The 1st two lines are needed only once per execution, not 
once per file read.



--
I cannot receive mail at the address this was sent from.
To reply directly, send to ar23hur "at" pobox "dot" com

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Rexx (was: OT? ... "deliberately unfriendly")

2013-11-29 Thread Paul Gilmartin
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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Rexx (was: OT? ... "deliberately unfriendly")

2013-11-29 Thread Shmuel Metz (Seymour J.)
In <002701ceece9$b17baa90$1472ffb0$@pc-link.com.au>, on 11/29/2013
   at 08:59 PM, Paul Gillis  said:

>Sample of I/O code below.

The I/O code is the same as for any other ANSI compliant Rexx; the
magic word is stream.

Regina, BTW, is pretty much the default implementation of ANSI Rexx.
 
-- 
 Shmuel (Seymour J.) Metz, SysProg and JOAT
 ISO position; see  
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Rexx (was: OT? ... "deliberately unfriendly")

2013-11-29 Thread Paul Gillis
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.

/* 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

Paul

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> On Behalf Of Scott Ford
> Sent: Friday, 29 November 2013 6:02 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Rexx (was: OT? ... "deliberately unfriendly")
> 
> Gil,
> 
> Haven't used Regina , but have used Open Object Rexx and like the Linux
> interface.
> 
> Scott ford
> www.identityforge.com
> from my IPAD
> 
> 'Infinite wisdom through infinite means'
> 
> 
> > On Nov 28, 2013, at 11:20 AM, Paul Gilmartin 
> wrote:
> >
> >> On Thu, 28 Nov 2013 07:41:14 -0600, Mike Schwab wrote:
> >>
> >> http://www.rexxinfo.org/
> >> http://www.rexxla.org/links/
> >>
> >>> On Thu, Nov 28, 2013 at 3:29 AM, Elardus Engelbrecht wrote:
> >>> 
> >>> I miss Rexx in command line for OS/2. I believe there are Rexx for
> windoze, but I haven't looked at it.
> >> 
> > Google finds many hits for REGINA CYGWIN.  But any Rexx stands or
> > falls on the quality of its host command interfaces.  THE?  Would you
> > want a comand interface to Notepad?
> >
> > I am very pleased with the SYSCALL command environment of Rexx for
> > z/OS (called TSO, but I can forgive that).
> >
> > -- gil
> >
> > --
> > For IBM-MAIN subscribe / signoff / archive access instructions, send
> > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions, send email
to
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Rexx (was: OT? ... "deliberately unfriendly")

2013-11-28 Thread Scott Ford
Gil,

Haven't used Regina , but have used Open Object Rexx and like the Linux 
interface.

Scott ford
www.identityforge.com
from my IPAD

'Infinite wisdom through infinite means'


> On Nov 28, 2013, at 11:20 AM, Paul Gilmartin  wrote:
> 
>> On Thu, 28 Nov 2013 07:41:14 -0600, Mike Schwab wrote:
>> 
>> http://www.rexxinfo.org/
>> http://www.rexxla.org/links/
>> 
>>> On Thu, Nov 28, 2013 at 3:29 AM, Elardus Engelbrecht wrote:
>>> 
>>> I miss Rexx in command line for OS/2. I believe there are Rexx for windoze, 
>>> but I haven't looked at it.
>> 
> Google finds many hits for REGINA CYGWIN.  But any Rexx stands
> or falls on the quality of its host command interfaces.  THE?  Would
> you want a comand interface to Notepad?
> 
> I am very pleased with the SYSCALL command environment of
> Rexx for z/OS (called TSO, but I can forgive that).
> 
> -- gil
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Rexx (was: OT? ... "deliberately unfriendly")

2013-11-28 Thread Paul Gilmartin
On Thu, 28 Nov 2013 07:41:14 -0600, Mike Schwab wrote:

> http://www.rexxinfo.org/
> http://www.rexxla.org/links/
>
>On Thu, Nov 28, 2013 at 3:29 AM, Elardus Engelbrecht wrote:
>
>> I miss Rexx in command line for OS/2. I believe there are Rexx for windoze, 
>> but I haven't looked at it.
>
> 
Google finds many hits for REGINA CYGWIN.  But any Rexx stands
or falls on the quality of its host command interfaces.  THE?  Would
you want a comand interface to Notepad?

I am very pleased with the SYSCALL command environment of
Rexx for z/OS (called TSO, but I can forgive that).

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN