<?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: re: Duplicates in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196879#M49191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your join may have issues.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you can check unique/duplicate records in SAS with NOUNIQUEKEY in proc sort. Available in SAS 9.3+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;proc sort data=have out=duprec nouniquekey uniqueout=want;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 19:50:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-04-15T19:50:02Z</dc:date>
    <item>
      <title>re: Duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196878#M49190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have created a dataset from two different datasets and I want to remove any duplicates in the new datasets. I have tried using the the proc sql distinct approach as well as a Data step with the first. approach and I keep getting a dataset that has duplicates but some of the duplicates are removed.. The dataset has only 3 variable, ID as a character variable and Unit Price and Effective Date both as numeric variables. I double checked and made sure are and were formatted the same before creating the new dataset. Any suggestion on what I may be missing and should check....Thanks in Avance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 19:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196878#M49190</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2015-04-15T19:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: re: Duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196879#M49191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your join may have issues.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you can check unique/duplicate records in SAS with NOUNIQUEKEY in proc sort. Available in SAS 9.3+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;proc sort data=have out=duprec nouniquekey uniqueout=want;&lt;BR /&gt;by ID;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 19:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196879#M49191</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-15T19:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: re: Duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196880#M49192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be interested is seeing the SQL code that did not work. Order of when to appear DISTINCT may have been the issue.&lt;/P&gt;&lt;P&gt;Also you may need to look at the ID in case some of them have one or more leading blank characters as "string" is not equal to " string" and could cause apparent duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 19:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196880#M49192</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-15T19:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: re: Duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196881#M49193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Reeza &amp;amp; Ballardw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and suggestions. With your suggestions of the possibility of blank characters for the ID variable, it turns out that there must have been a blank or blanks in the Unit Price as I used the Compress Function on both the ID and Unit Price variables having to convert Unit Price to a character variable first. It did the trick. Thanks once againn for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 13:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/re-Duplicates/m-p/196881#M49193</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2015-04-16T13:07:26Z</dc:date>
    </item>
  </channel>
</rss>

