Too complicated if he only wants the first stacked item.  The VAR stage,
without the TRACKING option assigns its first input to the variable then
shorts.  So the take 1 is unnecessary, and one possible solution is simply:
PIPE Stack',
'|Var expdt',
'|Hole'
would fit the bill.

Or to build on Paul's question:
'PIPE (End ?) Stack',
'|a:Take 1',
'|Var expdt',
'?a:|Hole'
--
Mike Harding
z/VM System Support
/sp


CMSTSO Pipelines Discussion List <CMS-PIPELINES@VM.MARIST.EDU> wrote on
06/24/2016 09:21:03 AM:

> From: Mike Walter <walterthepennyl...@hotmail.com>
> To: CMS-PIPELINES@VM.MARIST.EDU
> Date: 06/24/2016 09:23 AM
> Subject: Re: the STACK stage
> Sent by: CMSTSO Pipelines Discussion List <CMS-PIPELINES@VM.MARIST.EDU>
>
> Steve,
> If you expect three stacked records, are they all the same format,
> where 33.8 is an expdt?  If so, then do you want to do with each of
> those expdts?
> Changing your '| VAR expdt' stage to something like '| STEM expdts.'
> with three stavked input records containing expdts in 33.8 would
> create rexx stem variables:
> expdts.0=0expdts.1='xx/xx/xx'expdts.2='xx/xx/xx'expdts.3='xx/xx/
> xx'Where 'xx/xx/xx' is the expdt of each record in whatever format
> was stacked.
> Mike Walter
> Sent from my Verizon, Samsung Galaxy smartphone<div>
> </div><div>
> </div><!-- originalMessage --><div>-------- Original message
> --------</div><div>From: "Gentry, Steve"
> <steve.gen...@westernsouthernlife.com> </div><div>Date: 6/24/16  12:
> 06 PM  (GMT-05:00) </div><div>To: CMS-PIPELINES@VM.MARIST.EDU </
> div><div>Subject: Re: the STACK stage </div><div>
> </div>
> Possibly,(and I thought of that) but I'm not experienced enough to
> know how to code that.  This was something I had to get done very
> quickly.  I may go revisit.
> Steve
>
> -----Original Message-----
> From: CMSTSO Pipelines Discussion List
[mailto:CMS-PIPELINES@VM.MARIST.EDU
> ] On Behalf Of Paul Gilmartin
> Sent: Friday, June 24, 2016 11:59 AM
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: Re: the STACK stage
>
> On 2016-06-24, at 08:19, Gentry, Steve wrote:
>
> > I'm not getting the results I'd expect when STACK is the first in
> a pipeline.   What I thought would happen is the entire STACK is
> read into the stream and then proceed onto the next stage.  This is
> not happening.  Here is my code:
> > 'PIPE stack' ,
> >   '| take 1' ,
> >   '| spec 33.8 1' ,
> >   '| var EXPDT'
> >
> Since TAKE shorts the remainder of its input to its secondary output
> stream, would it work to connect that secondary stream to HOLE?
>
> > I will have at least three lines in the stack.  These three lines
> are created by another   command that uses the " STACK FIFO" (w/o the
quotes).
> >
> I've hardly mastered connectors.  I'd first try STACK LIFO then TAKE LAST
1.
>
> -- gil
>

Reply via email to