aggregator

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
anandkumarm
Premium Member
Premium Member
Posts: 55
Joined: Tue Feb 24, 2004 8:17 am

aggregator

Post by anandkumarm »

Hi
I have a problem with the aggregator.
I have a source from which I extract col1,col2,col3,col4,col5
i caliculate the sum of col3 with key as col1,col2
I also want to pass col4 ,col5 as I extracted from the source.
I couldnt find any option in the aggregator where in it allows me to pass a value which is not either a part of the key or an aggregated column.
please let me know if there is any way to do this
Thanks
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

That you cannot do in Aggregator stage. :( But there is a work around for it. 8) Sort the data before in the Aggregator stage. Use a copy stage after the sort with two output links. One to Agrregator stage and one to Join stage. Pass only the key field and calculation fields to Aggrgator stage and all fields to Join stage. Give the output from Aggregator stage to join stage. Do an inner join. you will get what you want.
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Is RCP works with Aggregator ?

Post by swapnilverma »

Is RCP works with Aggregator ?
if yes then how ?
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
Post Reply