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
difference b/w @INROWNUM and @OUTROWNUM
Moderators: chulett, rschirm, roy
difference b/w @INROWNUM and @OUTROWNUM
Regards,
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
Deepak Singhal
Everything is okay in the end. If it's not okay, then it's not the end.
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.
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
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
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,
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
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