difference b/w @INROWNUM and @OUTROWNUM

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
singhald
Participant
Posts: 180
Joined: Tue Aug 23, 2005 2:50 am
Location: Bangalore
Contact:

difference b/w @INROWNUM and @OUTROWNUM

Post by singhald »

hello friends

can u tell me wht is the difference b/w @inrownum and @outrownum.
and where @INROWNUM and @OUTROWNUM are used in the Datastage job.

Thanks

Singhal
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

In the transformer stage, the primary input stream sets the variable @INROWNUM to be the row count of the data coming into the stage on that link.

For each output link, there exists an @OUTROWNUM value that is the row count for all rows that have met the constraint condition to go down that link. So, if you have 1 link in and 3 links out, @INROWNUM will always be the number of rows to process. Each output link can have a different @OUTROWNUM value during processing because of that particular links constraint.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
The @INROWNUM is the sequential number of rows as they come into the transformer stage where @OUTROWNUM is the sequential number of rows going out a specific link from the transformer.

If you put constraints on a certain link in a transformer then the values of those two variables will not be the same.

You can use the two variables within the scope of the transformer stage.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Post Reply