I have been using interpret for this type of processing for a lot of years. 
Maybe it's just a bad habit, but it's always worked for me. I will have to 
experiment with some of the other suggestions. I certainly did not want to 
start a religious war.....
Pax,
Jon

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Gerhard Postpischil
Sent: Friday, November 05, 2010 3:03 PM
To: [email protected]
Subject: Re: Rexx question - Dynamic generation of variables?

On 11/5/2010 2:24 PM, Veilleux, Jon L wrote:
> INTERPRET  TEST"='FRED'"
> INTERPRET 'SAY TEST'

At the risk of starting another flame war, I would strongly discourage use of 
INTERPRET. While it may work correctly in some instances, it leads to problems 
in general, and is easily replaced by "value()".

I first ran across this problem while working at an ISV, and had to maintain 
code designed to manipulate JCL. The author used an INTERPRET that 
self-destructed the first time it encountered a JCL comment.

Gerhard Postpischil
Bradford, VT

----------------------------------------------------------------------
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
This e-mail may contain confidential or privileged information. If
you think you have received this e-mail in error, please advise the
sender by reply e-mail and then delete this e-mail immediately.
Thank you. Aetna   

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