<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: proc sort nodup in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72673#M21052</link>
    <description>Oops, yup</description>
    <pubDate>Tue, 22 Sep 2009 14:28:19 GMT</pubDate>
    <dc:creator>Flip</dc:creator>
    <dc:date>2009-09-22T14:28:19Z</dc:date>
    <item>
      <title>proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72668#M21047</link>
      <description>Hello Everyone,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to get rid of records with duplicate key (the by value in proc sort).  I tried different syntax and could never get it to work.  The field ID1 is the key.  I want to have unique ID1 in the outfile.&lt;BR /&gt;
&lt;BR /&gt;
I have used:&lt;BR /&gt;
PROC SORT; BY ID1; NODUP;&lt;BR /&gt;
PROC SORT; BY ID1 NODUP;&lt;BR /&gt;
&lt;BR /&gt;
none of these work.  Does anyone have any suggestion?&lt;BR /&gt;
&lt;BR /&gt;
Thank you so much!</description>
      <pubDate>Tue, 22 Sep 2009 14:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72668#M21047</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-09-22T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72669#M21048</link>
      <description>PROC SORT; BY ID1; NODUPkey;</description>
      <pubDate>Tue, 22 Sep 2009 14:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72669#M21048</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-22T14:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72670#M21049</link>
      <description>actually NODUPKEY is a PROC statement option.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sort data=sashelp.class out=sex nodupkey;&lt;BR /&gt;
   by sex;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 22 Sep 2009 14:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72670#M21049</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-09-22T14:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72671#M21050</link>
      <description>Thank you Flip.  &lt;BR /&gt;
&lt;BR /&gt;
I tried it with your exact syntax and got the following error:&lt;BR /&gt;
"Statement is not valid or it is used out of proper order."&lt;BR /&gt;
&lt;BR /&gt;
Any idea why?  I am using sas version 8.2.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 22 Sep 2009 14:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72671#M21050</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-09-22T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72672#M21051</link>
      <description>DATA_NULL,&lt;BR /&gt;
&lt;BR /&gt;
That worked.  Thank you so much!! &lt;BR /&gt;
:)</description>
      <pubDate>Tue, 22 Sep 2009 14:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72672#M21051</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2009-09-22T14:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72673#M21052</link>
      <description>Oops, yup</description>
      <pubDate>Tue, 22 Sep 2009 14:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72673#M21052</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-09-22T14:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72674#M21053</link>
      <description>Very handy adresses...&lt;BR /&gt;
&lt;BR /&gt;
Everything you wanted to know about SAS procedures:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/procwhatsnew902.htm#" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/procwhatsnew902.htm#&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
And off course, the SAS Online documentation at:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/index.html" target="_blank"&gt;http://support.sas.com/documentation/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Tue, 22 Sep 2009 15:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72674#M21053</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-09-22T15:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc sort nodup</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72675#M21054</link>
      <description>Also, remember, for NODUP to work, the duplicate observations must be adjacent, which implicitly calls for a reasonably granular BY variable list when using the function.  And, PROC SORT yields no mercy if you forget and code a BY variable list that will not achieve the required condition in order for the sort package to do its job removing duplicates.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 22 Sep 2009 18:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sort-nodup/m-p/72675#M21054</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-09-22T18:08:58Z</dc:date>
    </item>
  </channel>
</rss>

