How to datastage pass record between stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Enzopre
Participant
Posts: 57
Joined: Thu Feb 07, 2013 2:04 pm
Location: Italy

How to datastage pass record between stage

Post by Enzopre »

Hi at all

I'm a new entry in the forum and I'm new with using datastage.

I want to understand, if possible, how to datastage pass records (or rows) between stages when job is running. Suppose we have the following situation in Server Job:

seqFile1 ----> trn ----> seqFile2

when job is running how to pass record between seqFile1 and trn and between trn and seqFile2?

How to records, without setting In-Process or Inter-Process, pass between stages? .... all together, row by row or in other way?

Thanks in advance and sorry for my basic english
sudha03_vpr
Participant
Posts: 34
Joined: Tue Feb 26, 2013 9:36 am
Location: Chicago

Post by sudha03_vpr »

If there is no IPC stage between a passive and active stage, it process the data row by row.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yup. As noted without any buffering involved each row is processed from source to target, one after another.
-craig

"You can never have too many knives" -- Logan Nine Fingers
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Welcome to the forum and to DataStage....

As far as passing "records" or "rows" (the definition of which can be a bit ambiguous, but for the moment we'll assume them to be the same --- a single "tuple" of relational style, with one "row" of one or more "columns") between Stages, that's basically the normal behavior of DataStage....once you start writing Jobs and running them, this will become more obvious.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Enzopre
Participant
Posts: 57
Joined: Thu Feb 07, 2013 2:04 pm
Location: Italy

Post by Enzopre »

Thanks for the immediate responses.
Enzopre
Participant
Posts: 57
Joined: Thu Feb 07, 2013 2:04 pm
Location: Italy

Post by Enzopre »

Now it's all more clear. But I have another questions to ask to you.

If a stage, in server job, process one row at a time, why with a buffer the performance improve?

Also with the buffer stage process row by row.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

With a buffer more than one row can be passed between stages. Think of it as a producer-consumer model - the producer stage is writing rows into the buffer as fast as it can; the consumer stage is reading from the buffer as fast as IT can. The buffer mechanism can resist input if it becomes too full.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Enzopre
Participant
Posts: 57
Joined: Thu Feb 07, 2013 2:04 pm
Location: Italy

Post by Enzopre »

thanks, you have been very clear.
Post Reply