CLIST array variable?

2006-02-08 Thread Pullman, Nick
All, I am completely new to CLIST so please forgive me for my ignorance. Is there any type of array variable type in CLIST or anything like a stem variable in REXX? I am somewhat familiar with Rexx, and I am used to using stem variables and dereferencing the values in a loop, but I can't see

Re: CLIST array variable?

2006-02-08 Thread Dave Salt
mainframe! http://www.mackinney.com/products/SIM/simplist.htm From: "Pullman, Nick" <[EMAIL PROTECTED]> Reply-To: IBM Mainframe Discussion List To: IBM-MAIN@BAMA.UA.EDU Subject: CLIST array variable? Date: Wed, 8 Feb 2006 18:20:47 -0500 All, I am completely new to CLIST s

Re: CLIST array variable?

2006-02-09 Thread Pullman, Nick
p;TEMP SET &COUNT = &COUNT + 1 END Regards, Nick Pullman -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] Behalf Of Dave Salt Sent: Wednesday, February 08, 2006 6:10 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: CLIST array variable? Hi Nick, If you

Re: CLIST array variable?

2006-02-09 Thread Paul Gilmartin
In a recent note, Dave Salt said: > Date: Thu, 9 Feb 2006 00:10:04 + > > If you already know REXX my advise would be stay away from CLIST as REXX is > much more powerful. If there's some reason why you can't do that and you > There are some few but very significant facilities of CLIS

Re: CLIST array variable?

2006-02-09 Thread Shmuel Metz (Seymour J.)
In <[EMAIL PROTECTED]>, on 02/08/2006 at 06:20 PM, "Pullman, Nick" <[EMAIL PROTECTED]> said: >I am completely new to CLIST so please forgive me for my ignorance. >Is there any type of array variable type in CLIST or anything like a >stem variable in REXX? You can construct variable names.

Re: CLIST array variable?

2006-02-09 Thread Dave Salt
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)

Re: CLIST array variable?

2006-02-09 Thread Dave Salt
From: "Pullman, Nick" <[EMAIL PROTECTED]> Thanks Dave. That seemed to work for part of it, but I am getting an error if I am trying to assign a value to the variable within the loop; i.e. assign a value using this type of variable. /* This CLIST demonstrates how to create an array.

Re: CLIST array variable?

2006-02-09 Thread Steve Comstock
Dave Salt wrote: From: "Pullman, Nick" <[EMAIL PROTECTED]> Thanks Dave. That seemed to work for part of it, but I am getting an error if I am trying to assign a value to the variable within the loop; i.e. assign a value using this type of variable. /* This CLIST demonstrates how to create an

Re: CLIST array variable?

2006-02-10 Thread Shmuel Metz (Seymour J.)
In <[EMAIL PROTECTED]>, on 02/09/2006 at 05:28 PM, Dave Salt <[EMAIL PROTECTED]> said: >In the CLIST above, no value has been set for &COLOR Where is there a reference to a variable called &COLOR? Shouldn't &&COLOR&COUNT expand to &(name), where name is COLOR followed by the value of &COUNT?

Re: CLIST array variable?

2006-02-10 Thread Dave Salt
From: "Shmuel Metz (Seymour J.)" <[EMAIL PROTECTED]> Where is there a reference to a variable called &COLOR? Shouldn't &&COLOR&COUNT expand to &(name), where name is COLOR followed by the value of &COUNT? Shouldn't that be SET &COLOR1 = 1? If it worked like REXX, then yes it would work the way

Re: CLIST array variable?

2006-02-10 Thread Skip Robinson
I wouldn't characterize CLIST as 'always ignoring the first ampersand'. The ampersand in SET &COLOR = RED is *optional* because the position of the term to the left of the equal sign marks it as a variable regardless of whether the ampersand is coded. That is, only a variable could possibly occup

Re: CLIST array variable?

2006-02-11 Thread Paul Gilmartin
In a recent note, Skip Robinson said: > Date: Fri, 10 Feb 2006 16:26:47 -0800 > > I wouldn't characterize CLIST as 'always ignoring the first ampersand'. The > ampersand in > > SET &COLOR = RED > > is *optional* because the position of the term to the left of the equal > sign marks it a

Re: CLIST array variable?

2006-02-11 Thread Steve Comstock
Paul Gilmartin wrote: In a recent note, Skip Robinson said: Date: Fri, 10 Feb 2006 16:26:47 -0800 I wouldn't characterize CLIST as 'always ignoring the first ampersand'. The ampersand in SET &COLOR = RED is *optional* because the position of the term to the left of the equal sign ma

Re: CLIST array variable?

2006-02-11 Thread Steve Comstock
To extend my own post, another experiment: SET RED = BLUE SET COLOR = &RED SET COLLAR = &&RED WRITE 'Write of &COLOR: ' &COLOR WRITE 'Write of &&COLOR: ' &&COLOR WRITE 'Write of &&COLLAR: ' &&COLLAR WRITE 'Write of &COLLAR: ' &COLLAR produces: 'WRITE OF BLUE: ' BLUE 'WRITE OF &

Re: CLIST array variable?

2006-02-11 Thread Dave Salt
From: Paul Gilmartin <[EMAIL PROTECTED]> Let me see if I understand this: SET RED = 'WOMBAT' SET COLOR = RED PRINT &&COLOR/* Prints 'WOMBAT', Doesn't it? */ The CLIST syntax to display WOMBAT would be as follows: SET RED = WOMBAT /* No quotes required */ SET COLOR = &RED

Re: CLIST array variable?

2006-02-11 Thread Paul Gilmartin
In a recent note, Dave Salt said: > Date: Sat, 11 Feb 2006 19:39:48 + > > >From: Paul Gilmartin <[log in to unmask]> > >Let me see if I understand this: > > > > SET RED = 'WOMBAT' > > SET COLOR = RED > > PRINT &&COLOR/* Prints 'WOMBAT', Doesn't it? */ > > The CLIST sy

Re: CLIST array variable?

2006-02-11 Thread Paul Hanrahan
I'm convinced that a clist array variable could be achieved since it's only an issue of symatic expression. The real question is time, cost and user acceptance. - Paul Hanrahan -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Paul

Re: CLIST array variable?

2006-02-11 Thread Dave Salt
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