If the value You want is (in this example) 'ABCD**',
the why don't just use the value as is ('B = A' etc.) ?
Why the use of Value() ??
Value() is typically used as in e g where a variable 'C'
contains the name of another variable ('A') which value
You want. (B = Value(C) ==> B = A ==> B = 'ABCD**')
Regards,
Thomas
__________________________________________
Thomas Berg Specialist IT-U SWEDBANK
> -----Ursprungligt meddelande-----
> Från: IBM Mainframe Discussion List
> [mailto:[EMAIL PROTECTED] För Itschak Mugzach
> Skickat: den 4 november 2008 11:29
> Till: [email protected]
> Ämne: Re: How to stop REXX from interpating statement?
>
> I read a record from a dataset. A field named A holds the
> string value of 'ABCD**'. I then pass the name of the
> variable to a routine. The routine resolved the value by name
> using VALUE(A). If A hold string of **, REXX thinks this is a
> power operation,. In Clist, you can limit the number of
> levels it will interprate the variable. I want REXX to return
> value by name without trying to resolve it and reference it
> like a string variable.
>
> Itschak
>
> On Tue, Nov 4, 2008 at 12:14 PM, Hunkeler Peter (KIUK 3) <
> [EMAIL PROTECTED]> wrote:
>
> > Not sure what you want. REXX alway replaces all variables on a
> > statement before executing the resulting statment.
> >
> > Some ideas:
> >
> > say A
> > say 'A'
> > say 'A=' !! A
> >
> > --
> > Peter Hunkeler
> > CREDIT SUISSE
> >
> >
> ----------------------------------------------------------------------
> > 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
>
>
----------------------------------------------------------------------
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