Dave,

You can use the Rexx function VALUE to do this:

Oldvalue = value(x|magix|y, 'newvalue')

HTH

Peter

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Gibney, Dave
> Sent: Friday, November 05, 2010 2:29 PM
> To: [email protected]
> Subject: Re: Rexx question - Dynamic generation of variables?
> 
> > -----Original Message-----
> > From: IBM Mainframe Discussion List [mailto:[email protected]] On
> > Behalf Of Walt Farrell
> > Sent: Friday, November 05, 2010 11:18 AM
> > To: [email protected]
> > Subject: Re: Rexx question - Dynamic generation of variables?
> >
> > On Fri, 5 Nov 2010 11:12:44 -0700, Gibney, Dave <[email protected]>
> wrote:
> >
> > >I don't subscribe to the Rexx list and am not sure I'd survive
> another
> > >list :)
> > >
> > >Is it possible to dynamically define Rexx variables?
> > >
> > >It doesn't work but I'd like something like:
> > >X='first'
> > >y='second'
> > >x|magic|y='fred'
> > >Say x|magic|yy
> > >
> > >And get 'fred' as the output.
> > >
> > >Really x is a dsname and y is the volser and I'd like a variable
> > >dsn|magic|volser.
> >
> > Are you looking for something different from REXX's standard compound
> > symbols?
> >
> > X='first'
> > y='second'
> > x.y = 'fred'
> > say x.y
> 
> Yes, in the end, and I should have mentioned it, I want to dynamically
> define the stem root.
> 
> I want to able to set dsnamevolser.catlg = 'YES' and dsnamevolser.poe -
> 'yes'
> 
> 
> >
> > http://publibz.boulder.ibm.com/cgi-
> >
> bin/bookmgr_OS390/BOOKS/ikj4a390/2.4.3?SHELF=EZ2ZBK0K&DT=20100603150559
> >
> > --
> > Walt Farrell
> > IBM STSM, z/OS Security Design
--
This message and any attachments are intended only for the use of the addressee 
and
may contain information that is privileged and confidential. If the reader of 
the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.


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