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
hne
Participant
Posts: 8
Joined: Tue Nov 30, 2004 8:27 am

aggregator

Post by hne »

Do I understand well that it is not possible to calculate the max/min of a character field. Since datastage converts the output automatically to a double, the calculation becomes always 0 in case of a string input.

I read here something about preserve type, but that option is not available.

Regards
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

Yes we cannot do any aggregations on string fields in aggregator.
JoshGeorge
Participant
Posts: 612
Joined: Thu May 03, 2007 4:59 am
Location: Melbourne

Post by JoshGeorge »

'Aggregator' can be used with option 'Preserve Type' as true. If you don't have this option in your 'Aggregator' stage under 'Aggregations -> Column for calculation -> Available properties to add -> 'Preserve Type' then you might have to contact provider for this fix.
Joshy George
<a href="http://www.linkedin.com/in/joshygeorge1" ><img src="http://www.linkedin.com/img/webpromo/bt ... _80x15.gif" width="80" height="15" border="0"></a>
Post Reply