> The previous ply was comparing Rexx to JCL, not OREXX, but OK:
Yes, but I didn't want somebody to take "REXX" as including OREXX or OOREXX
> Rexx compound symbols are associative arrays.
No, but you can use a bunch of compound symbols to simulate an associative
array, That touches on one of the incompatibilities. The following has
different semantics in [O[OREXX and REXX:
A. = B.
> Rexx poses a challenge for "iterate over".
The phrase "iterate over" is a term of art, not the [O]OREXX syntax, and in
OOREXX the code
A. = 'Preset"
Nil = ''; A.Nil = 'wombat'
drop A.42
do I over A
say 'A;i'='A[i]
end
will write one line: "A.=wombat". In practice I would have written A[] =
'Preset' and A[Nil]='wombat', which are equivalent to what you wrote.
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of
Paul Gilmartin [[email protected]]
Sent: Sunday, December 19, 2021 2:55 PM
To: [email protected]
Subject: Re: AWK ? - Re: Top 8 Reasons for using Python instead of REXX for z/OS
On Sun, 19 Dec 2021 18:34:55 +0000, Seymour J Metz wrote:
>> Similarly, I'd like to have easy access to ISPF without any TSO
>> involvement, and without allocating a bunch of DDNAMEs.
>
>What's wrong with batch TMP? CMS?
>
>> Rexx lacks:
>> o Ability to invoke a mixture of authorized and non-authorized programs from
>> the same script.
>
>Maybe in IRXJCL et al, but not in TSO.
>
Cumbersome in IRXJCL; eeven worse in OMVS.
>> Any additions to the list?
>
>REXX, as opposed to OREXX, only has call by value.
>
The previous ply was comparing Rexx to JCL, not OREXX, but OK:
>REXX, as opposed to OREXX, lacks arrays and iteration over arrays, although
>compound variable pick up some of the slack.
>
Rexx compound symbols are associative arrays. What's wrong with that?
Although they're limited to one-dimensional. Does OREXX support
multi-dimensional?
Rexx poses a challenge for "iterate over". How does OREXX iterate
over A. after:
A. = 'Preset"
Nil = ''; A.Nil = 'wombat'
drop A.42
I doubt that the shareware STEMPUSH(?) and STEMPULL(?) can
do this preserving full information. II think it's a deficiency of IRXEXCOM.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN