Hello Everyone, As Data speaks better so please find below my input and desired output. Sno P H 1 A 0 1 A 1 1 S 0 1 D 0 2 S 1 2 A 0 3 S 0 3 Q 1 4 X 0 5 W 1 6 A 0 6 B 0 7 A 1 7 S 1 7 D 0 Output Sno P H 1 A 1 1 S 0 1 D 0 2 A 1 3 S 1 4 X 0 6 A 0 6 B 0 7 D 2 Actually, what I am trying to do is, if H=1 then I have delete that recors, thats simple but the problem is , how to increment it for other member of the group. Also, the name of the variable 'H' does not matter in the output, if its easier to have it with new name, then also its fine.
... View more