The ANSI standard for REXX describes the use of the stem.0 convention, e.g., in 
conjunction with ADDRESS ... WITH.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of 
Charles Mills [[email protected]]
Sent: Tuesday, February 2, 2021 1:05 PM
To: [email protected]
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 the index.

I could write a Rexx command processor any way that I wanted. I could have it 
take a Rexx variable name and prepend stems onto it and return its results that 
way. Or append tails consisting of Roman numerals.

Charles


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Tuesday, February 2, 2021 9:52 AM
To: [email protected]
Subject: Re: Rexx stem variable question

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 some utilities accept partial stems, such as:
EXECIO
    ...
    STEM var-name
    ...
    When var-name does not end with a period, the variable names are appended 
with numbers

This is useful in the API to such as ISPF Edit which prohibits '.' in
variable names.

What about:
    'EXECIO 3 DISKR ddname (STEM X.Y.Z'  /* Lacks final '.'  */
Does this define X.Y.Z0, X.Y.Z1, X.Y.Z2, and X.Y.Z3?  Is Y substituted?

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

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

Reply via email to