> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Phil Smith
> Sent: Friday, November 05, 2010 5:09 PM
> To: [email protected]
> Subject: Re: Rexx question - Dynamic generation of variables?
> 
> On Fri, Nov 5, 2010 at 7:57 PM, Gibney, Dave <[email protected]> wrote:
> > And, I can't seem to use a stem value (values of A.x) to index a
> stem.
> > A.x = 'foo'
> > say A.x
> > B.foo = 'bar'
> > say B.foo
> > say B.A.x
> > y = A.x
> > say y
> > say B.y
> > Gets:
> > foo
> > bar
> > B.A.X
> > foo
> > B.foo
> 
> > I want bar where I get B.A.X and B.foo
> 
> Right. That would be a case for using VALUE. "Stems are not arrays."
> Not now, not ever. But in some ways they're more powerful, as they let
> you do associative memory.

Yup value(B.y) gives bar. But value(B.A.x) still gives B.A.X. I suppose
I can "nest" the value function.
Whoops, guess not:
    11 +++ say B.value(A.x)                              
IRX0043I Error running TEST, line 11: Routine not found  

> --
> ...phsiii
> 
> Phil Smith III
> [email protected]
> Voltage Security, Inc.
> www.voltage.com
> 
> 
> ----------------------------------------------------------------------
> 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

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

Reply via email to