How to get rowcount from transfomer

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Selva_dwh
Participant
Posts: 11
Joined: Fri Nov 27, 2009 9:03 am

How to get rowcount from transfomer

Post by Selva_dwh »

I am reading from seq file and have to write it in to 4 tables
Headers table, Details table, Tailers table and T_ETL_COUNT.

I have used 2 transformer in parallel job.
for eg., seq file have 10 rows for detail ,which I am able to read that and write it in details table.


But In run time :
How to find out how many rows was interest ( row count ),
[in DSLink86( details table) ],
and that row count number how to interest in T_ETL_COUNT table, in the col for TOTAL_E.

I try to use @outrownum , @inrownum in the stage var and derivation, but the result was like
1
2
.
.
.
10
for each rows,but I am looking total count and that result ( int )should be getting updated

Pls advice
Selva_DWH
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Use Datastage API - DSLinkRowCount (typo..)

Regards
Sreeni
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Send a link with a single not null field to an Aggregator and tell it to Count them, then send that output to your table.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Selva_dwh
Participant
Posts: 11
Joined: Fri Nov 27, 2009 9:03 am

Post by Selva_dwh »

thanks used Aggregator stage and able to count the row and write .
Selva_DWH
Post Reply