<?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 Eliminating all duplicates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Eliminating-all-duplicates/m-p/678514#M204797</link>
    <description>&lt;P&gt;I'm using an SQL join to eliminate all records that have the same three variables.&amp;nbsp; &amp;nbsp;It appears to do I what wanted (it drops 6 records that have the same hicn, yr and month) but I also get a warning.&amp;nbsp; &amp;nbsp;Is there away to change this so I don't get the warning?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27 proc sql;&lt;BR /&gt;28 create table Onerecord as&lt;BR /&gt;29 select * from ByYrMo a inner join ByYrMo b&lt;BR /&gt;30 on a.hicn=b.hicn and a.yr=b.yr and a.mon=b.mon&lt;BR /&gt;31 group by a.hicn, a.yr, a.mon&lt;BR /&gt;32 having count(*)=1&lt;BR /&gt;33 ;&lt;BR /&gt;NOTE: The query requires remerging summary statistics back with the original data.&lt;BR /&gt;WARNING: Variable HICN already exists on file WORK.ONERECORD.&lt;BR /&gt;WARNING: Variable Yr already exists on file WORK.ONERECORD.&lt;BR /&gt;WARNING: Variable Mon already exists on file WORK.ONERECORD.&lt;BR /&gt;WARNING: Variable FFS_Dis already exists on file WORK.ONERECORD.&lt;BR /&gt;NOTE: Table WORK.ONERECORD created, with 8349353 rows and 4 columns.&lt;/P&gt;&lt;P&gt;34 quit;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 17:25:24 GMT</pubDate>
    <dc:creator>Batman</dc:creator>
    <dc:date>2020-08-21T17:25:24Z</dc:date>
    <item>
      <title>Eliminating all duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Eliminating-all-duplicates/m-p/678514#M204797</link>
      <description>&lt;P&gt;I'm using an SQL join to eliminate all records that have the same three variables.&amp;nbsp; &amp;nbsp;It appears to do I what wanted (it drops 6 records that have the same hicn, yr and month) but I also get a warning.&amp;nbsp; &amp;nbsp;Is there away to change this so I don't get the warning?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27 proc sql;&lt;BR /&gt;28 create table Onerecord as&lt;BR /&gt;29 select * from ByYrMo a inner join ByYrMo b&lt;BR /&gt;30 on a.hicn=b.hicn and a.yr=b.yr and a.mon=b.mon&lt;BR /&gt;31 group by a.hicn, a.yr, a.mon&lt;BR /&gt;32 having count(*)=1&lt;BR /&gt;33 ;&lt;BR /&gt;NOTE: The query requires remerging summary statistics back with the original data.&lt;BR /&gt;WARNING: Variable HICN already exists on file WORK.ONERECORD.&lt;BR /&gt;WARNING: Variable Yr already exists on file WORK.ONERECORD.&lt;BR /&gt;WARNING: Variable Mon already exists on file WORK.ONERECORD.&lt;BR /&gt;WARNING: Variable FFS_Dis already exists on file WORK.ONERECORD.&lt;BR /&gt;NOTE: Table WORK.ONERECORD created, with 8349353 rows and 4 columns.&lt;/P&gt;&lt;P&gt;34 quit;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 17:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Eliminating-all-duplicates/m-p/678514#M204797</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2020-08-21T17:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminating all duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Eliminating-all-duplicates/m-p/678517#M204799</link>
      <description>&lt;P&gt;Use a table alias to avoid ambiguity-&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table Onerecord as
select a.* 
from ByYrMo a inner join ByYrMo b
 on a.hicn=b.hicn and a.yr=b.yr and a.mon=b.mon
 group by a.hicn, a.yr, a.mon
 having count(*)=1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 17:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Eliminating-all-duplicates/m-p/678517#M204799</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-08-21T17:33:17Z</dc:date>
    </item>
  </channel>
</rss>

