Hello ! I've got a little question about a problem met in my work today. I've got a SAS table which looks like the following one : Nosinid ndep dep 1 1 100 1 2 -100 1 3 100 2 1 500 2 2 -500 2 3 500 2 4 -500 2 5 500 2 6 500 3 1 1000 3 2 -500 3 3 500 I need, for each value of the variable Nosinid, to read the values of dep in the order of ndep, and to delete the pairs (a,-a) with a>0 and the two elements a and -a are consecutive. So the table should become the following one : Nosinid ndep dep 1 3 100 2 5 500 2 6 500 3 1 1000 3 2 -500 3 3 500 Could you explain me how I could perform this operation ? Thanks in advance. Ludovic
... View more