<?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 Remove entry that is duplicated in one variable but not others in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609211#M17842</link>
    <description>&lt;P&gt;Below is a snippet from very large data set. The problem I am experiencing is to do with duplicates. As you can see below I have duplicated values in the 'ID' column, however the rest of the values in the other coloumns are not duplicates. What I want to do is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove the row with the 'first' duplicate, where there a zero entry in Var1 and blanks in Var2 and Var 3.&lt;/LI&gt;&lt;LI&gt;Therefore keeping the row where there is information for all variables.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can I achieve this is SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.PNG" style="width: 313px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34419iA0A08D281017B9FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 23:48:14 GMT</pubDate>
    <dc:creator>sasprogramming</dc:creator>
    <dc:date>2019-12-03T23:48:14Z</dc:date>
    <item>
      <title>Remove entry that is duplicated in one variable but not others</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609211#M17842</link>
      <description>&lt;P&gt;Below is a snippet from very large data set. The problem I am experiencing is to do with duplicates. As you can see below I have duplicated values in the 'ID' column, however the rest of the values in the other coloumns are not duplicates. What I want to do is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove the row with the 'first' duplicate, where there a zero entry in Var1 and blanks in Var2 and Var 3.&lt;/LI&gt;&lt;LI&gt;Therefore keeping the row where there is information for all variables.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can I achieve this is SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.PNG" style="width: 313px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34419iA0A08D281017B9FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data.PNG" alt="data.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 23:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609211#M17842</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2019-12-03T23:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove entry that is duplicated in one variable but not others</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609212#M17843</link>
      <description>&lt;P&gt;One way:&lt;/P&gt;
&lt;PRE&gt;proc sort data=have;
   by id Var1;
run;

data want;
   set have;
   by id;
   if first.id and var1=0 and missing(var2) and missing(var3) then delete;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 00:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609212#M17843</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-04T00:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove entry that is duplicated in one variable but not others</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609235#M17849</link>
      <description>&lt;P&gt;That worked, thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 02:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-entry-that-is-duplicated-in-one-variable-but-not-others/m-p/609235#M17849</guid>
      <dc:creator>sasprogramming</dc:creator>
      <dc:date>2019-12-04T02:32:52Z</dc:date>
    </item>
  </channel>
</rss>

