I left out the bit where the addition was conditional. 
I suppose using the while or until is actually more understandable anyway.

> -----Original Message-----
> From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On
> Behalf Of Billy Ashton
> Sent: Thursday, February 27, 2020 1:52 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: New Rexx Question
> 
> Dave, you are correct that stem.0 is resolved at the start. If you think about
> it, if it were dynamic, then your code would be a never-ending loop.
> 
> The key here is to know how many items you want to add, and where in the
> stem list you want to add them. Give us a little more detail, and we can help
> you out.
> 
> Billy
> 
> 
> From: "Gibney, Dave" <gib...@wsu.edu>
> To: IBM-MAIN@listserv.ua.edu
> Sent: 2/27/2020 4:14:49 PM
> Subject: New Rexx Question
> 
> >I wish to process a basic stem variable with stem.0 containing the
> >occurrences, do I = 1 to stem.0
> >/* but, inside here, I wish to add additional occurrences */
> >   a = stem.0 + 1
> >   stem.a = 'New item'
> >   stem.0 = a
> >end
> >
> >It appears that the do start and stop are evaluated and fixed at the
> beginning and subsequent alterations to the end value aren't effective.
> >Is this just the way it is? Or is there a technique I don't know?
> >
> >Dave Gibney
> >Information Technology Services
> >Washington State University
> >
> >
> >----------------------------------------------------------------------
> >For IBM-MAIN subscribe / signoff / archive access instructions, send
> >email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to