Is RCP works with Aggregator ?

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
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Is RCP works with Aggregator ?

Post by swapnilverma »

Is RCP( Run time Column propagation) works with Aggregator ?
I want all the columns of my input to be present in output too.

I know we can do the same by using join. I do not want to use it.
Any other way ?

I tried with RCP but no luck...

any help will be great :-)
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
ZDC
Premium Member
Premium Member
Posts: 15
Joined: Fri Nov 23, 2007 5:06 am

Post by ZDC »

if RCP is used for Aggregator stage only those column will go to output , which are there in the mapping tab of aggregator on the left side(left side on the mapping tab).I have tried it once with sequential file as input to aggregator and sequential file as output to aggregator.

Is this interview question??? :wink:

i hope this will help.

Cheers,
ZDC
Zero Degree Consulting
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Think about it in SQL terms. What are the rules in SQL? Every column named in the SELECT clause, if there is a GROUP BY clause, must either be mentioned in the GROUP BY clause or have a set function applied to it.

A column propagated via RCP would meet neither of these conditions.

Therefore it would be illegal if it were possible.

Therefore it is not possible.

QED
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Post by swapnilverma »

Thanx for the replying... it helps...
BTW its not an interview Question... it is a practical problem I faced in my project...

can you think any other way we can acheive this ?
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

Do an exact search on "aggregator". This has been answered before. You would have to use Sort, Copy and Join stages along with Aggregator stage to get all the columns and the calculated field.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's usually called a "fork join" design.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply