Please do not re-open an old question. If you have a new question, open a new post. Include in your post test data - in the form of a datastep - and what the output should look like. Also, be clear as to the logic behind gettnig the output. In your description below you mention nothing of which row to take, 3, 3 appears once, however 3,2 appears multiple times, so which one should it be?
... View more