<?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: identify duplicates in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4008#M1270</link>
    <description>Not really an EG issue, but you could put this into a Code node:&lt;BR /&gt;
&lt;BR /&gt;
  PROC SORT DATA = inputdsn OUT = temp;&lt;BR /&gt;
    BY var1 var2 var3;&lt;BR /&gt;
  RUN;&lt;BR /&gt;
&lt;BR /&gt;
  DATA unique duplicates;&lt;BR /&gt;
    SET temp;&lt;BR /&gt;
    BY var1 var2 var3;&lt;BR /&gt;
    IF NOT LAST.var3 THEN OUTPUT duplicates;&lt;BR /&gt;
                               ELSE OUTPUT unique;&lt;BR /&gt;
  RUN;&lt;BR /&gt;
&lt;BR /&gt;
"var1 var2 var3" are the variables used to identify the duplicated records.  Your duplicate values will be in the "duplicates" data set.  The individual unique records will be in the "unique" data set.&lt;BR /&gt;
&lt;BR /&gt;
Is this what you were looking for?&lt;BR /&gt;
&lt;BR /&gt;
.............Phil&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: prholland

Message was edited by: prholland</description>
    <pubDate>Wed, 01 Aug 2007 12:47:01 GMT</pubDate>
    <dc:creator>prholland</dc:creator>
    <dc:date>2007-08-01T12:47:01Z</dc:date>
    <item>
      <title>identify duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4007#M1269</link>
      <description>I'm working on a large clinical dataset. I'd like to extract duplicates into a new table. Any idea on how to do this?</description>
      <pubDate>Wed, 01 Aug 2007 12:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4007#M1269</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-01T12:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: identify duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4008#M1270</link>
      <description>Not really an EG issue, but you could put this into a Code node:&lt;BR /&gt;
&lt;BR /&gt;
  PROC SORT DATA = inputdsn OUT = temp;&lt;BR /&gt;
    BY var1 var2 var3;&lt;BR /&gt;
  RUN;&lt;BR /&gt;
&lt;BR /&gt;
  DATA unique duplicates;&lt;BR /&gt;
    SET temp;&lt;BR /&gt;
    BY var1 var2 var3;&lt;BR /&gt;
    IF NOT LAST.var3 THEN OUTPUT duplicates;&lt;BR /&gt;
                               ELSE OUTPUT unique;&lt;BR /&gt;
  RUN;&lt;BR /&gt;
&lt;BR /&gt;
"var1 var2 var3" are the variables used to identify the duplicated records.  Your duplicate values will be in the "duplicates" data set.  The individual unique records will be in the "unique" data set.&lt;BR /&gt;
&lt;BR /&gt;
Is this what you were looking for?&lt;BR /&gt;
&lt;BR /&gt;
.............Phil&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: prholland

Message was edited by: prholland</description>
      <pubDate>Wed, 01 Aug 2007 12:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4008#M1270</guid>
      <dc:creator>prholland</dc:creator>
      <dc:date>2007-08-01T12:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: identify duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4009#M1271</link>
      <description>Its just what I'm looking for although I was hoping there would be a feature in enterprise guide that would do it...</description>
      <pubDate>Wed, 01 Aug 2007 13:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4009#M1271</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-01T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: identify duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4010#M1272</link>
      <description>If your client is version 9 then you can use DUPOUT&lt;BR /&gt;
&lt;BR /&gt;
data in;&lt;BR /&gt;
	do x=1 to 6; output; end;&lt;BR /&gt;
	do x=1 to 2; output; end;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort data=in out=out nodupkey dupout=dupes;&lt;BR /&gt;
	by x;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Colin</description>
      <pubDate>Wed, 01 Aug 2007 15:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/identify-duplicates/m-p/4010#M1272</guid>
      <dc:creator>Colin</dc:creator>
      <dc:date>2007-08-01T15:37:40Z</dc:date>
    </item>
  </channel>
</rss>

