What you want is a queue of waiting worker bees.  Have a look for my
THROTTLE REXX, which does exactly that.

On 5 January 2011 02:35, Bob Cronin <bob.cro...@gmail.com> wrote:

> Thanks I will try that.
> --
> bc
>
> On Tue, Jan 4, 2011 at 5:35 PM, Rob van der Heij <rvdh...@gmail.com>
> wrote:
>
> > On Tue, Jan 4, 2011 at 11:07 PM, Bob Cronin <bob.cro...@gmail.com>
> wrote:
> >
> > > From those, I want to pick one at random and then give the new spool
> file
> > to
> > > the named user (i.e. I want the output of the pipe to be the userid to
> > use).
> > >
> > > I could load them into a stem and use the Rexx Random() function, I
> > suppose,
> > > but was curious if there's a PipeThink way to do it.
> >
> > Since you're sorting anyway, you could use the random stage to extend
> > your sort key with a random number and then take the first one from
> > the run.
> >
> > | Rob
> >
>

Reply via email to