<?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: Need to eliminate repetative data from the file in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362567#M10923</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33525"&gt;@Shah&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please don't post the same question twice.&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 22:54:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-05-29T22:54:10Z</dc:date>
    <item>
      <title>Need to eliminate repetative data from the file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362424#M10903</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS data management studio 9.4 version, it is frontend interface where in there are only options of drag &amp;amp; drop and also to write few expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am in this sitution where the data is repeated and i need to eliminate them from the file. I have tried using clusters by grouping the primary key but getting stuck in the next condition. Please suggest me the appropriate solution,&amp;nbsp;provided below the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Required :&amp;nbsp;if roll no = 123A then remove the roll no, i.e. 0012 and 0064 has 123A area so the whole 0012 and 0064 should be removed from the data. The output should only consist of 12345 roll no&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="222"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="222" colspan="3"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D&gt;0064&lt;/TD&gt;
&lt;TD&gt;MMMM&lt;/TD&gt;
&lt;TD&gt;7869&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;TD&gt;MMMM&lt;/TD&gt;
&lt;TD&gt;3333&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;TD&gt;MMMM&lt;/TD&gt;
&lt;TD&gt;123A&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;TD&gt;MMMM&lt;/TD&gt;
&lt;TD&gt;7869&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;TD&gt;MMMM&lt;/TD&gt;
&lt;TD&gt;6666&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0064&lt;/TD&gt;
&lt;TD&gt;MMMM&lt;/TD&gt;
&lt;TD&gt;913B&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="216" style="width: 162pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL width="72" style="width: 54pt;" span="3" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="216" height="17" style="border: 0.5pt solid windowtext; border-image: none; width: 162pt; height: 12.75pt; background-color: transparent;" colspan="3"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;Output&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: rgb(0, 25, 101) windowtext windowtext; height: 12.75pt; background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;Roll No&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;Name&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;Area&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: rgb(0, 25, 101) windowtext windowtext; height: 12.75pt; background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;12345&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;LLLLL&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;7869&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: rgb(0, 25, 101) windowtext windowtext; height: 12.75pt; background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;12345&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;LLLLL&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;123A&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" style="border-width: 0px 0.5pt 0.5pt; border-style: none solid solid; border-color: rgb(0, 25, 101) windowtext windowtext; height: 12.75pt; background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;12345&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;LLLLL&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD style="border-width: 0px 0.5pt 0.5pt 0px; border-style: none solid solid none; border-color: rgb(0, 25, 101) windowtext windowtext rgb(0, 25, 101); background-color: transparent;"&gt;&lt;FONT color="#001965" face="Verdana" size="2"&gt;3333&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Shaheen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 06:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362424#M10903</guid>
      <dc:creator>Shah</dc:creator>
      <dc:date>2017-05-29T06:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need to eliminate repetative data from the file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362484#M10915</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards missover;
input Roll_No 	Name$ 	Area$;
cards;
0012 	KKKKK 	123A
0012 	KKKKK 	3333
0012 	KKKKK 	7869
0012 	KKKKK 	7777
0012 	KKKKK 	913B
12345 	LLLLL 	7869
12345 	LLLLL 	123A
12345 	LLLLL 	3333
0064 	MMMM 	7869
0064 	MMMM 	7869
0064 	MMMM 	3333
0064 	MMMM 	123A
0064 	MMMM 	7869
0064 	MMMM 	6666
0064 	MMMM 	913B
;

proc sql;
create table test as select a.*,b.sum from have as a left join (select sum(count) as sum, area from (select count(distinct area) as count, area, roll_no from have group by area,roll_no) group by area) as b on a.area=b.area where b.sum&amp;gt;=3 order a.area,b.roll_no;
quit;

data want;
set test;
by area roll_no;
if last.area;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 12:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362484#M10915</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-05-29T12:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to eliminate repetative data from the file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362567#M10923</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33525"&gt;@Shah&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please don't post the same question twice.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 22:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362567#M10923</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-29T22:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to eliminate repetative data from the file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362614#M10925</link>
      <description>&lt;P&gt;Dear Patrick,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for posting the query twice, i had a confusion to choose the forum, SAS studio and Data Management. Please ignore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Shaheen&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 05:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362614#M10925</guid>
      <dc:creator>Shah</dc:creator>
      <dc:date>2017-05-30T05:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need to eliminate repetative data from the file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362618#M10926</link>
      <description>&lt;P&gt;Dear Jag,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use parts supplied by dataflux, it is frontend tool where there are data source node which is used to import the input files and data validation node and expression node is used to draw the conditions. So I cannot write the coding what you have provided. Please suggest short condition which will help me to reach the output. Also note that my data is dynamic, the area will keep changing and the roll no's will increase based on the requirement. The data provided was just a sample of my input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Shaheen&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 05:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Need-to-eliminate-repetative-data-from-the-file/m-p/362618#M10926</guid>
      <dc:creator>Shah</dc:creator>
      <dc:date>2017-05-30T05:55:17Z</dc:date>
    </item>
  </channel>
</rss>

