<?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: How to remove IDs with deuplicates entirely without keeping any of them in the dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-IDs-with-deuplicates-entirely-without-keeping-any/m-p/491310#M128824</link>
    <description>&lt;P&gt;will this help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sort data=have;
by id;
run;

data unique NOUNIQUEKEY;
set have;
by id;
if first.id and last.id then output unique;
else output NOUNIQUEKEY;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Aug 2018 15:49:45 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-08-30T15:49:45Z</dc:date>
    <item>
      <title>How to remove IDs with deuplicates entirely without keeping any of them in the dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-IDs-with-deuplicates-entirely-without-keeping-any/m-p/491307#M128822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset contains duplicate, triplicate or even more subject IDs. However, I do not know which duplicate is correct so I would like to remove the IDs with more than 1 count completely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;there are two subject ID#1002. I would like to remove&amp;nbsp;both subject ID#1002 completely. I would also like to export all the subjects who have been removed to a dataset so I can keep track of who has duplicates in the dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 15:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-IDs-with-deuplicates-entirely-without-keeping-any/m-p/491307#M128822</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2018-08-30T15:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove IDs with deuplicates entirely without keeping any of them in the dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-IDs-with-deuplicates-entirely-without-keeping-any/m-p/491310#M128824</link>
      <description>&lt;P&gt;will this help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc sort data=have;
by id;
run;

data unique NOUNIQUEKEY;
set have;
by id;
if first.id and last.id then output unique;
else output NOUNIQUEKEY;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 15:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-IDs-with-deuplicates-entirely-without-keeping-any/m-p/491310#M128824</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-30T15:49:45Z</dc:date>
    </item>
  </channel>
</rss>

