From: Paul Gilmartin <[EMAIL PROTECTED]>
Does this work in CLIST even as it does in Rexx if the tail
("&COUNT" in this case) is an (almost) arbitrary string, possibly
containing special characters, whitespace, etc.:
Gil,
The 'tail' (if that's the right expression to use when referring to CLIST)
does not have to be numeric. Here's an example:
SET &GOESWITHPURPLE = GOLD
SET &GOESWITHBROWN = GREEN
SET &GOESWITHBLUE = RED
WRITENR ENTER ONE OF THE FOLLOWING COLORS: PURPLE BROWN BLUE
READ &INPUT
SET &TEMP = &&GOESWITH&INPUT
WRITE A COLOR THAT GOES WITH &INPUT IS &TEMP
Note: I wouldn't use the above to decide what to wear or how to decorate a
room, as my sense of color matching leaves lots to be desired. :-)
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