From: Paul Gilmartin <[EMAIL PROTECTED]>
No!  Missed the point!  If I wanted to display WOMBAT, I could
simply do

  WRITE WOMBAT

couldn't I?  The objective is to assign to or display the
variable whose (unspecified) name is in &COLOR. The Rexx
equivalent would be:

    interpret color "= 'WOMBAT'"


If that's the objective, then I already showed in an earlier post how to do it. Here it is again, but modified slightly to use the WOMBAT example:

SET &ANIMAL1 = WOMBAT
SET &NUMBER = 1
SET &COLOR = &&ANIMAL&NUMBER
WRITE &COLOR

The above logic displays 'WOMBAT'.

Hope that helps,

Dave Salt
SimpList(tm) - The easiest, most powerful way to surf a mainframe!
http://www.mackinney.com/products/SIM/simplist.htm

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