<?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: Removing duplicates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778147#M247687</link>
    <description>&lt;P&gt;Thanks a lot, I think this will be helping out&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 11:49:03 GMT</pubDate>
    <dc:creator>rosejolly</dc:creator>
    <dc:date>2021-11-03T11:49:03Z</dc:date>
    <item>
      <title>Removing duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778086#M247656</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I want to merge 2 dataset using proc sql. Before merging I want to remove duplicates in one dataset and then merge . Can this be done under single proc statement in proc sql.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 04:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778086#M247656</guid>
      <dc:creator>rosejolly</dc:creator>
      <dc:date>2021-11-03T04:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778087#M247657</link>
      <description>&lt;P&gt;What do you mean by duplicates? Rows where all columns' values are the same or where certain key columns have the same values? SQL isn't very good at removing duplicate rows / key columns and there are better methods to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 05:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778087#M247657</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-11-03T05:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778120#M247674</link>
      <description>&lt;P&gt;Duplicates here I meant is certain key columns have the same values. Thanks for the reply&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 10:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778120#M247674</guid>
      <dc:creator>rosejolly</dc:creator>
      <dc:date>2021-11-03T10:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778139#M247683</link>
      <description>&lt;P&gt;The blueprint is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
  select
    t1.*,
    t2.var,
    t2.varx
  from have1 t1 left join (
    select distinct id, var, varx
    from have2
  ) t2
  on t1.id = t2.id
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To really be of help here, we need to see examples for your data and what you expect as a resulting table.&lt;/P&gt;
&lt;P&gt;Post your incoming datasets as data steps with datalines, so we do not have to make guesses about your data.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778139#M247683</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-03T11:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778147#M247687</link>
      <description>&lt;P&gt;Thanks a lot, I think this will be helping out&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778147#M247687</guid>
      <dc:creator>rosejolly</dc:creator>
      <dc:date>2021-11-03T11:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778167#M247696</link>
      <description>&lt;P&gt;Keep in mind that, as always, the task defines the tool. Depending on the layout, size and contents of your data, other means than SQL might be more efficient, or it might even be that SQL can't do what you want (SQL only knows DISTINCT, but PROC SORT makes a difference between NODUPREC and NODUPKEY).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 12:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-duplicates/m-p/778167#M247696</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-03T12:43:13Z</dc:date>
    </item>
  </channel>
</rss>

