data check; set old; by id; if first.id and ^last.id; run; We can use the above code for finding the duplicate rows.
Reveal answer
Fill a bubble to check yourself
data check; set old; by id; if first.id and ^last.id; run; We can use the above code for finding the duplicate rows.