Need something like running sum

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
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

Need something like running sum

Post by vishu19aug »

Hi,

My data is something like

name value
a_00 123
a_00 134
a_01 123
a_01 143
a_00 125
a_00 134
a_02 213
a_02 123

I want the data to be transformed to -
name value occurance
a_00 123 1
a_00 134 1
a_01 123 1
a_01 143 1
a_00 125 2
a_00 134 2
a_02 213 1
a_02 123 1

Can somebody help, which stage to use?
Thanks in Advance,
Vishal
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply