Aggregation in Transformation 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
ravi7487
Premium Member
Premium Member
Posts: 25
Joined: Sat Feb 05, 2011 10:03 pm

Aggregation in Transformation Stage

Post by ravi7487 »

Hi,

Could you please let me know how to perform aggregation in transformation stage.

Source data

Deptno,sal
10,200
20,300
30,400
20,300
10,300
30,400

I want to aggregate data by deptno wise in tranformation stage? How can i acheive this?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No.

The philosophy of DataStage is one stage type, one task.

If you want to aggregate, use an 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.
ravi7487
Premium Member
Premium Member
Posts: 25
Joined: Sat Feb 05, 2011 10:03 pm

Post by ravi7487 »

Thanks for replying Ray.

But is it atleast possible to get the sum of salary by deptno using tranformation stage. Please let me know if its possible. Interviwer asked me this question

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Of course it's possible.

But it's wrong.

Would you (or your interviewer) use a hammer to tighten a screw? It's possible, but it's the wrong tool for the job.
Last edited by ray.wurlod on Tue Feb 08, 2011 12:53 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ravi7487
Premium Member
Premium Member
Posts: 25
Joined: Sat Feb 05, 2011 10:03 pm

Post by ravi7487 »

Thanks Ray.
Post Reply