title: How to remove duplicated records\observations WITHOUT sorting in SAS？
body: <p>I wonder if there is a way to unduplicate records <strong>WITHOUT</strong> sorting?Sometimes, I want to keep original order and just want to remove duplicated records.</p>
  
  <p>Is it possible?</p>
  
  <p>BTW, below are what I know regarding unduplicating records, which does sorting in the end..</p>
  
  <p>1.</p>
  
  <pre><code>proc sql;
     create table yourdata_nodupe as
     select distinct *
     From abc;
  quit;
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>proc sort data=YOURDATA nodupkey;    
      by var1 var2 var3 var4 var5;    
  run;
  </code></pre>