Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Paul Gilmartin [000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Tuesday, February 2, 2021 2:29 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Tue, 2 Feb 2021 18:54:42 +, Seymour J Metz wrote: >

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
...@mcn.org] Sent: Tuesday, February 2, 2021 2:40 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question > naively I would expect value('AAA.bbb') and value('AAA.BBB'), > but that is neither how it is documented nor how it works. Is a word missing in there? Charles -Or

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question Full Rexx stem enumeration would *have* to include both numeric and non-numeric tails and would have to account for all kinds of gaps: A.1 = "Foo" A.17 = "Bar" A.Notary = "Sojack" Numeric-only, gap-less enumeration is ea

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
Subject: Re: Rexx stem variable question On Tue, 2 Feb 2021 23:30:52 +, Seymour J Metz wrote: >Read it again. What I would naively expect is *NOT* how it works. The fact >that value() does the same processing on it's first argument as what would be >done if the value were su

Re: Rexx stem variable question

2021-02-02 Thread Paul Gilmartin
On Tue, 2 Feb 2021 23:30:52 +, Seymour J Metz wrote: >Read it again. What I would naively expect is *NOT* how it works. The fact >that value() does the same processing on it's first argument as what would be >done if the value were substituted in the source code is wildly unexpected

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
Gilmartin [000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Tuesday, February 2, 2021 3:46 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Tue, 2 Feb 2021 19:16:52 +, Seymour J Metz wrote: >The behavior of value() is confusing in that it violates the

Re: Rexx stem variable question

2021-02-02 Thread Jeremy Nicoll
On Tue, 2 Feb 2021, at 16:55, Paul Gilmartin wrote: > Does OOREXX require preallocation of compounds with a "new" method? No. If you write "classic rexx" without using any of the OO stuff, (or using only a subset of it) you can choose just to have eg: tax.3 = 20 without anything prior

Re: Rexx stem variable question

2021-02-02 Thread Charles Mills
A.0 Say A.i End i Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, February 2, 2021 12:46 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Tue, 2 Feb 2021 19:16:

Re: Rexx stem variable question

2021-02-02 Thread Paul Gilmartin
On Tue, 2 Feb 2021 19:16:52 +, Seymour J Metz wrote: >The behavior of value() is confusing in that it violates the law of least >astonishment; naively I would expect value('AAA.bbb') and value('AAA.BBB'), ... > Those arguments name the same compound symbol, therefore the results are

Re: Rexx stem variable question

2021-02-02 Thread Charles Mills
z Sent: Tuesday, February 2, 2021 11:17 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question The behavior of value() is confusing in that it violates the law of least astonishment; naively I would expect value('AAA.bbb') and value('AAA.BBB'), but that is neither how it is document

Re: Rexx stem variable question

2021-02-02 Thread Paul Gilmartin
On Tue, 2 Feb 2021 18:54:42 +, Seymour J Metz wrote: >The ANSI standard for REXX describes the use of the stem.0 convention, e.g., >in conjunction with ADDRESS ... WITH. > The Standard permits the stem.0 convention, therefore implicitly requiring its support. Regrettably, too many

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
of Paul Gilmartin [000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Tuesday, February 2, 2021 11:55 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Tue, 2 Feb 2021 14:57:28 +, Seymour J Metz wrote: >The confusing part is is not the way compound variables w

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
of Charles Mills [charl...@mcn.org] Sent: Tuesday, February 2, 2021 1:05 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question Of course, technically that is not a Rexx language issue. I am looking at Cowlishaw "The Rexx Language" and "EXECIO" does not appear in

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
[000433f07816-dmarc-requ...@listserv.ua.edu] Sent: Tuesday, February 2, 2021 1:23 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Tue, 2 Feb 2021 10:05:35 -0800, Charles Mills wrote: >Of course, technically that is not a Rexx language issue. I am look

Re: Rexx stem variable question

2021-02-02 Thread Paul Gilmartin
On Tue, 2 Feb 2021 10:05:35 -0800, Charles Mills wrote: >Of course, technically that is not a Rexx language issue. I am looking at >Cowlishaw "The Rexx Language" and "EXECIO" does not appear in the index. > It's conventional, but peculiar to the IBM world: CMS, z/OS, (OS/2?), ...? uni-REXX,

Re: Rexx stem variable question

2021-02-02 Thread Charles Mills
to it and return its results that way. Or append tails consisting of Roman numerals. Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Tuesday, February 2, 2021 9:52 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re

Re: Rexx stem variable question

2021-02-02 Thread Paul Gilmartin
On Tue, 2 Feb 2021 09:12:07 -0800, Charles Mills wrote: >... >/* rexx test */ >x = 'VX' /* Value of X */ >y = 'VY' /* value of Y */ >A.x.y = 'Foo' /* Presumably A.VX.VY is set to "Foo" */ >Combo = 'VX.VY' >Say A.Combo /* Says "Foo": does not matter how you get to A.VX.VY! */ > And

Re: Rexx stem variable question

2021-02-02 Thread Charles Mills
y 1, 2021 4:09 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question Thanks all. I am getting it now. I had the wrong mental model of how Rexx stems work (and I suspect some others may also.) I pictured it kind of like C or COBOL multi-dimensional arrays. I pictured Rexx A.B.C.D be

Re: Rexx stem variable question

2021-02-02 Thread Paul Gilmartin
On Tue, 2 Feb 2021 14:57:28 +, Seymour J Metz wrote: >The confusing part is is not the way compound variables work, but the way >value() works. > The doc must be read carefully, but then is it confusing? Both TSO/E Rexx and Regina say some paraphrase of" "The argument of VALUE() is a string

Re: Rexx stem variable question

2021-02-02 Thread Seymour J Metz
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Charles Mills [charl...@mcn.org] Sent: Monday, February 1, 2021 7:09 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question Thanks all. I am getting it now. I had the wrong mental model of how

Re: Rexx stem variable question

2021-02-01 Thread Charles Mills
"A.B plus a period." Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Seymour J Metz Sent: Saturday, January 30, 2021 7:06 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question https://ia801609.us.archive.

Re: Rexx stem variable question

2021-01-30 Thread Seymour J Metz
du/~smetz3 From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of Tom Conley [pinnc...@rochester.rr.com] Sent: Friday, January 29, 2021 10:33 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On 1/29/2021 12:05 PM, Charles Mills wrote: &g

Re: Rexx stem variable question

2021-01-29 Thread Tom Conley
On 1/29/2021 12:05 PM, Charles Mills wrote: Try value(isstepinit.userid.) = 0 Thanks @Tom. I will keep that in mind. I already got this program working using somewhat different logic that avoided dependency on the nonexistent "Rexx feature." Charles Charles, First, let me apologize for

Re: Rexx stem variable question

2021-01-29 Thread Seymour J Metz
@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Fri, 29 Jan 2021 15:42:03 +, Seymour J Metz wrote: >> Tails are literals >No; tails are symbols, and are substituted. > +1 >>value(isstepinit.userid.) = 0. >There are several issues with that. Safer is >old = v

Re: Rexx stem variable question

2021-01-29 Thread Charles Mills
ilto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Tom Conley Sent: Friday, January 29, 2021 7:13 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On 1/28/2021 11:58 PM, Charles Mills wrote: > I either have a misunderstanding of how stem variables work - or perhaps it > is just

Re: Rexx stem variable question

2021-01-29 Thread Paul Gilmartin
On Fri, 29 Jan 2021 15:42:03 +, Seymour J Metz wrote: >> Tails are literals >No; tails are symbols, and are substituted. > +1 >>value(isstepinit.userid.) = 0. >There are several issues with that. Safer is >old = value(isstepinit'.'userid'.', 0) Oh my gosh! Usually not. Consider:

Re: Rexx stem variable question

2021-01-29 Thread Seymour J Metz
_ From: IBM Mainframe Discussion List on behalf of Tom Conley Sent: Friday, January 29, 2021 10:13 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On 1/28/2021 11:58 PM, Charles Mills wrote: > I either have a misunderstanding of how stem variables work - or perhaps it

Re: Rexx stem variable question

2021-01-29 Thread Tom Conley
On 1/28/2021 11:58 PM, Charles Mills wrote: I either have a misunderstanding of how stem variables work - or perhaps it is just some stupid program bug. I know this basic drill on stem variables: I can say foo. = "bar" and then the value of foo.anything is effectively "bar". Does that also

Re: Rexx stem variable question

2021-01-29 Thread Paul Gilmartin
On Fri, 29 Jan 2021 06:14:38 -0600, Steve Horein wrote: >> >> > IsStepInit.Userid. = "0" >> >> "FTPD." is the tail. The stem end at the first period. > >Is that always true?

Re: Rexx stem variable question

2021-01-29 Thread Seymour J Metz
0433f07816-dmarc-requ...@listserv.ua.edu] Sent: Friday, January 29, 2021 5:12 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question On Fri, 29 Jan 2021 08:20:22 +0300, turgut kalfaoğlu wrote: > >a.b. = 0 >does not work.. > Oh, it works. It simp

Re: Rexx stem variable question

2021-01-29 Thread Seymour J Metz
29, 2021 7:14 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question > > > Userid = "FTPD" > > IsStepInit.Userid. = "0" > > "FTPD." is the tail. The stem end at the first period. > Is that always true? https://www.ib

Re: Rexx stem variable question

2021-01-29 Thread Steve Horein
> > > Userid = "FTPD" > > IsStepInit.Userid. = "0" > > "FTPD." is the tail. The stem end at the first period. > Is that always true? https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.icha300/ich2a3_RRSF_stem_variables_created_by_IRRXUTIL.htm Is IBM using stem and

Re: Rexx stem variable question

2021-01-29 Thread David Crayford
On 29/01/2021 6:12 pm, Paul Gilmartin wrote: On Fri, 29 Jan 2021 06:12:21 +, Seymour J Metz wrote: If you could get IBM to port OOREXX to TSO ... Why suggest a TSO dependency, rather than "... get IBM to port OOREXX to z/OS ..." Think of IRXJCL and OMVS. OOREXX is never going to happen

Re: Rexx stem variable question

2021-01-29 Thread Paul Gilmartin
On Fri, 29 Jan 2021 08:20:22 +0300, turgut kalfaoğlu wrote: > >a.b. = 0 >does not work.. > Oh, it works. It simply hasn't the semantic Charles wished for. -- On Fri, 29 Jan 2021 06:12:21 +, Seymour J Metz wrote: > >If you could get IBM to port OOREXX to TSO ... >

Re: Rexx stem variable question

2021-01-28 Thread Seymour J Metz
> Does that also work at the next level of stem variables? There is no "level of stem variables". > Userid = "FTPD" > IsStepInit.Userid. = "0" "FTPD." is the tail. The stem end at the first period. If you could get IBM to port OOREXX to TSO then you would be able to have stem variables whose

Re: Rexx stem variable question

2021-01-28 Thread Charles Mills
Well phooey! Thanks, Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of turgut kalfaoglu Sent: Thursday, January 28, 2021 9:20 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx stem variable question Charles -- it only works

Re: Rexx stem variable question

2021-01-28 Thread turgut kalfaoğlu
Charles  -- it only works for the first level.. The global initialization that is.. a. = 0 works, but a.b. = 0 does not work.. -turgut On 1/29/21 7:58 AM, Charles Mills wrote: I either have a misunderstanding of how stem variables work - or perhaps it is just some stupid program bug. I