I wonder if there is a way to unduplicate records WITHOUT sorting?Sometimes, I want to keep original order and just want to remove duplicated records.
I
data output; set yourdata; by var notsorted; if first.var then output; run;
This will not sort the data but will remove duplicates within each group.