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
Mallayagari
Participant
Posts: 15
Joined: Tue Apr 20, 2004 3:10 am

aggregator

Post by Mallayagari »

hi,
I need to use the aggregator stage to aggreagte few numeric fields. Apart from that I have a string field for which I need to get the max() of it. The output is throwing as all zero's. Is it that aggregator doesn't work on string fields?? How can it be done?

Thanksin advance
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Aggregator has nothing to do but the max() forces to throw an error. Convert your string to Numeric before sending it to aggregator.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
Mallayagari
Participant
Posts: 15
Joined: Tue Apr 20, 2004 3:10 am

Post by Mallayagari »

[quote="us1aslam1us"]Aggregator has nothing to do but the max() forces to throw an error. Convert your string to Numeric before sending it to aggregator.[/quote]

USe the preserve type property set to 'True' and it will work
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

If you are on 7.5.1 you will have to apply a patch to use preserve type property. Contact IBM support.
Assume everything I say or do is positive
Post Reply