<?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 delete the dup that is in a group in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54584#M15130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp; I tried few procedures btu can't quite get it.&lt;/P&gt;&lt;P&gt;I have a bunch of dup and I would like to delete the dup that is NOT in one of the list in another dataset or specified in the proc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PS &lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;CIT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;TWN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; OTT&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; SHE&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; ZHE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep the dup that TWN is in a list of (AJX, YYZ).. the rest delete. (the dups must be of PS and CIT obviously)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So want:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PS&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;CIT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;TWN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Nov 2011 01:55:14 GMT</pubDate>
    <dc:creator>podarum</dc:creator>
    <dc:date>2011-11-26T01:55:14Z</dc:date>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54584#M15130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp; I tried few procedures btu can't quite get it.&lt;/P&gt;&lt;P&gt;I have a bunch of dup and I would like to delete the dup that is NOT in one of the list in another dataset or specified in the proc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PS &lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;CIT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;TWN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; OTT&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; SHE&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; ZHE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep the dup that TWN is in a list of (AJX, YYZ).. the rest delete. (the dups must be of PS and CIT obviously)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So want:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PS&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;CIT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;TWN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2011 01:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54584#M15130</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2011-11-26T01:55:14Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54585#M15131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful that you can post some more sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data have;
input (PS&amp;nbsp;&amp;nbsp; CIT&amp;nbsp; TWN) ($);
cards;
L1T&amp;nbsp; Tor&amp;nbsp; AJX
L1T&amp;nbsp; Tor&amp;nbsp; OTT
L1T&amp;nbsp; Tor&amp;nbsp; SHE
M1P Tor&amp;nbsp; YYZ
M1P Tor&amp;nbsp; ZHE
;
run;
proc sql;
 create table want as
&amp;nbsp; select *
&amp;nbsp;&amp;nbsp; from have
&amp;nbsp;&amp;nbsp;&amp;nbsp; group by ps,cit
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; having count(*) ge 2 and twn in ('AJX', 'YYZ');
quit;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2011 02:21:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54585#M15131</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-26T02:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54586#M15132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your rule for deleting duplicates?&amp;nbsp; It it is first alphabetical, as in your example, then first sort, then sort with nodupkey.&amp;nbsp; E.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have out=want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by ps cit twn;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=want nodupkey;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by ps cit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2011 02:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54586#M15132</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-26T02:22:37Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54587#M15133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;art my rule is if it's not in the list of selected TWN then it must be deleted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2011 03:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54587#M15133</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2011-11-26T03:23:50Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54588#M15134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I vote for Ksharp's suggested code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2011 05:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54588#M15134</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-26T05:24:39Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54589#M15135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I get this Note and 0 observatiosn show up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NOTE: The query requires remerging summary statistics back with the original data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 04:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54589#M15135</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2011-11-27T04:53:56Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54590#M15136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The note is normal and not indicative of any problem.&amp;nbsp; That you get 0 observations, of course, is a significant problem.&amp;nbsp; The data look like city names, forward postal code sorting areas, and airport codes.&amp;nbsp; Are they case sensitive or might some records have all lower or upper case or some other feature that would make it so that expected matches won't be found?&amp;nbsp; You'll have to provide some sample data for which you get the results you mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 15:21:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54590#M15136</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-27T15:21:03Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54591#M15137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The code worked well, but it also deletes any indipendedn observations that I would want to keep&amp;nbsp; eg. The &lt;STRONG&gt;M1G&amp;nbsp; Tor&amp;nbsp; YYZ&amp;nbsp; or&amp;nbsp; L2E Osh YYZ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;PS &lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;CIT&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;TWN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; OTT&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; SHE&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; ZHE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;M1G Tor&amp;nbsp; YYZ&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;L2E&amp;nbsp; Osh&amp;nbsp; YYZ&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 18:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54591#M15137</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2011-11-27T18:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54592#M15138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I'm confused as that it what the code I originally proposed does.&amp;nbsp; I.e.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt; input (PS&amp;nbsp;&amp;nbsp; CIT&amp;nbsp; TWN) ($);&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; OTT&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; SHE&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; ZHE&lt;/P&gt;&lt;P&gt;M1G Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;L2E&amp;nbsp; Osh&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc sort data=have out=want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by ps cit twn;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=want nodupkey;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by ps cit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results in a file with 4 records, namely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps&amp;nbsp;&amp;nbsp; cit&amp;nbsp;&amp;nbsp; twn&lt;/P&gt;&lt;P&gt;L1T&amp;nbsp; Tor&amp;nbsp; AJX&lt;/P&gt;&lt;P&gt;L2E Osh YYZ&lt;/P&gt;&lt;P&gt;M1G Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;P&gt;M1P Tor&amp;nbsp; YYZ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 18:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54592#M15138</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-27T18:52:06Z</dc:date>
    </item>
    <item>
      <title>delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54593#M15139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You are right if the TWN is always the first alphabetical one to use, but this is just a small example I used to illustarte.&amp;nbsp; But I found a solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;by PS;&lt;/P&gt;&lt;P&gt;retain PS;&lt;/P&gt;&lt;P&gt;if first.PS =last.PS then use 'Y'; else if CIT in ('AJX', 'YYZ') then use = 'Y' else use = 'N'&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 19:03:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54593#M15139</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2011-11-27T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54594#M15140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That wouldn't work unless you mistyped it it meant to type:&lt;/P&gt;&lt;P&gt;if first.PS =last.PS then use='Y';&lt;/P&gt;&lt;P&gt;however, that wouldn't work as you expect.&amp;nbsp; Given 3 duplicate records, then 2nd record would get accepted as both first.ps and last.ps would equal 0, but would be accepted as "use" since it would meet the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the rest of the line is missing two more semicolons, none of your cit fields have those values, and the file would still have to be preceded by the correct proc sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is sorted correctly, then the following would have the same effect as the code I suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by PS;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if not((first.PS and last.PS) or twn in ('AJX', 'YYZ'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Nov 2011 19:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54594#M15140</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-27T19:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54595#M15141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes I meant to type &lt;/P&gt;&lt;P&gt;if first.PS =last.PS then use='Y';&amp;nbsp; But this is meant only for the non-duplicate records (or individual records), the dups would fall under else if CIT in ('AJX', 'YYZ') then use = 'Y' else use = 'N' . I also mistyped the 2 semi-colons.&amp;nbsp; You are also right, your code gave me the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 01:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54595#M15141</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2011-11-28T01:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: delete the dup that is in a group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54596#M15142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you also need to keep the group which only contain one obs. Why not directly use WHERE statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt; set have;&lt;/P&gt;&lt;P&gt; where twn in ('AJX', 'YYZ');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 02:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-the-dup-that-is-in-a-group/m-p/54596#M15142</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-28T02:12:45Z</dc:date>
    </item>
  </channel>
</rss>

