Character Aggregation

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
mail2krishna79
Charter Member
Charter Member
Posts: 56
Joined: Fri Apr 21, 2006 9:53 am

Character Aggregation

Post by mail2krishna79 »

I am trying to aggregate the character of size 1 to find the max and min based on two values, will aggregation stage work for this req.

Version is DS Parallel 7.5x

Any help is appreciated

Thanks
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Do you mean a lexicographic MAX()? A < a on the ASCII chart, A < B on the ASCII chart, etc. Is this what you mean?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
mail2krishna79
Charter Member
Charter Member
Posts: 56
Joined: Fri Apr 21, 2006 9:53 am

Post by mail2krishna79 »

No just two suppose you get value 'A' or 'B' in rows with key 200 and you want to get the minimum value 'A' and remove the dup 'B' for the same key 200, along with counting the number of rows for key 200.

Hope this makes the situation clear
jguerrero
Participant
Posts: 21
Joined: Wed Aug 27, 2003 5:12 pm
Location: Chile -South America
Contact:

Post by jguerrero »

Just use Aggregator Stage, the firs output fiel must be the "key", with group by this field. For the second choose MIN to obtain the minimun value of the field "A","B",...an so on....

Finally create a third field (column) with the function count for the input fiel "key".

That's all

Regards
mail2krishna79
Charter Member
Charter Member
Posts: 56
Joined: Fri Apr 21, 2006 9:53 am

Post by mail2krishna79 »

I thought there was a problem with character aggregation in PX. Please help if this case is not true with 7.5 PX.

Thanks
Post Reply