Aggregator stage

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
iskapalli
Participant
Posts: 76
Joined: Wed Jul 25, 2007 12:36 am

Aggregator stage

Post by iskapalli »

Hi,

I want to sum of more than one input column in same output column by useing Aggregator stage.

ex: select sum(col1+ col2) group by col3.

Please help me.
jerome_rajan
Premium Member
Premium Member
Posts: 376
Joined: Sat Jan 07, 2012 12:25 pm
Location: Piscataway

Re: Aggregator stage

Post by jerome_rajan »

Please post a sample of your data and the expected output. The question is ambigous and not very clear.
Jerome
Data Integration Consultant at AWS
Connect With Me On LinkedIn

Life is really simple, but we insist on making it complicated.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Sum them separately then sum the results. You can't do it in a single pass unless you've calculated (col1 + col2) upstream of the Aggregator stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The latter seems like the best solution to me... sum them first upstream and then Aggregate them.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply