Instead of coding a multistream (in which one sends the secondary output of
Take to Hole), one could use buffer:
  'PIPE stack|buffer|var expdt'
Buffer will read all stacked lines and only then pass the firstcrecord
through. Note that Take isn't required as Var will stop aftr havibg
processed the first record.
Op 24-jun.-2016 6:26 PM schreef "Mike Walter" <
[email protected]>:

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" <
[email protected]> </div><div>Date: 6/24/16  12:06 PM
(GMT-05:00) </div><div>To: [email protected] </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:[email protected]]
On Behalf Of Paul Gilmartin
Sent: Friday, June 24, 2016 11:59 AM
To: [email protected]
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