Hello Rob,
Thanks for your answer.
Unfortunately, I've never been able to understand the "synchronize" and
"juxtapose" stages ... :-(
("pipe ahelp ..." and "pipe help ..." don't help me, this time)
This being said, I don't understand the behaviour of your pipeline as a
"black box", neither (maybe I have to do another job !).
On my system (z/VM 5.2.0, CMS/TSO Pipelines, 5741-A05/5655-A17 1.0110),
the console displays the following lines :
A
X
A
Y
B
X
B
Y
C
X
C
Y
I thought I could use a "join" stage to join these, before the console
stage, but it has no effect on the output (?!).
And if I write in a file just before the console, to see the content, I
see this :
A
A
B
B
C
C
but I expected to see that :
AX
AY
BX
BY
CX
CY
What do I do wrong ?
Thanks
Michaël
-----Message d'origine-----
De : Rob van der Heij <[email protected]>
Envoyé : 18/11/2010 12:37
À : [email protected]
<[email protected]>
Cc :
Objet : Re: N1 records x N2 records -> N1xN2 records ?
On Thu, Nov 18, 2010 at 11:58 AM, DUGALEIX Michaël
<[email protected]> wrote:
Hello plumbers,
Is there a stage which can combine an input of N1 records and an input of N2
records to give an output of N1xN2 records in the following way :
Something like this:
PIPE ( end \ )
\< 1 txt
| s: synch
| j: juxtapose
| cons
\< 2 txt
| instore
| dup *
| s:
| outstore
| j:
With 'instore' you buffer the entire stream and get a "token" that is
duplicated. This way 'outstore' produces multiple copies of your input
stream. The 'synch' stage will pace the records on the first pipeline
segment to make them flow with the tokens in the 2nd segment. This way
a full set of records is presented at the 'juxtapose' while it is
holding a record from the first stream.
| Rob