I have a DS with content like this:
Key1 Key2 value with leading sign (blank or '-')
0001 1111 -000100
0001 1111 000100
0002 1111 000200
0001 1111 000200
0002 1111 -000300
0002 1111 000300
0001 1111 -000100
0001 1111 000100
0001 1111 -000100
0001 1111 000100
0002 1111 000200
0001 1111 000200
0002 1111 -000300
0002 1111 000300
0001 1111 -000100
0001 1111 000100
and the result should be:
0002 1111 000200
0001 1111 000200
0001 1111 000200
so I want to get rid off all of the records which have exactly the same keys and value (except for the sign) - a kind of +/- pairs,
so these records have to be removed
0001 1111 -000100
0001 1111 000100
0001 1111 000100
but these records
0001 1111 -000200
0001 1111 000100
0001 1111 000100
have to be kept both.
I guess a normal SUM will not work and I first have to split the DS and rejoin, but I really have no idea how to do this.
I hope I explained it clearly enough, sorry for my bad english.
frank