On Wed, 6 Apr 2011 14:14:27 +0200, Hunkeler Peter (KIUP 4) wrote:
>>stem. = 0
>>stem.0 = 10
>>
>>Will create a stem variable of 10 elements all with a value of zero.
>
>No.
>
>The first statement tells REXX to return the value "0" for any
>read reference to a stem variable named like "stem...." *if* that
>variable has not been assigned a value explicitly.
>
I would clarify with: "*if* that variable has neither been assigned
a value explicitly nor explicitly dropped in the interim." Order
of operations matters.
The TSO/E Rexx Reference states it most concisely:
... when a stem is used as the target of an assignment,
all possible compound variables whose names begin with
that stem receive the new value, ...
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html