Still not sure I understand. Anyway, maybe you need the INTERPRET
instruction:

/* REXX */
...
/* read data into variable A */
...
call sub "A"    /* call sub with the name of the variable to be used */
...
exit

sub:
/* assign content of variable passed by name to another variable */
interpret "X = " arg(1)
say x
return







Peter Hunkeler
CREDIT SUISSE

Global Data Center Operations
Print Processing Engineering / KIUK 3
Uetlibergstrasse 231
CH-8070 Zurich
Phone   +41 (0)44 332 2697
Fax     +41 (0)44 332 4543
http://www.credit-suisse.com

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Itschak Mugzach
Sent: Tuesday, November 04, 2008 11:29 AM
To: [email protected]
Subject: 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

Reply via email to