aggregator to sum up the values on month wise

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
sangvi
Participant
Posts: 16
Joined: Wed Mar 02, 2005 8:10 pm

aggregator to sum up the values on month wise

Post by sangvi »

Hi,
Help me out in summing up certain values from a file by the month wise .Out of three columns in my file one is date column.


Regards,
Sangvi
sangvi
Participant
Posts: 16
Joined: Wed Mar 02, 2005 8:10 pm

Post by sangvi »

Hi
I had a step working for this just wanted to verify will that be fine.Called the date field from file into the transformer with DateGenericGetMonth function and then use aggregator to group the field and got the result wanted.

Regards,
Sangvi
T42
Participant
Posts: 499
Joined: Thu Nov 11, 2004 6:45 pm

Post by T42 »

If you want to count the months, you can get MonthFromDate(). If you want to count the days... MonthDayFromDate(). There are a number of options you can use -- just look at Appendix B ("Functions") on your Parjdev.pdf file.
Post Reply