<?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: Removing Duplicates of variable A with hierarchy of variable B in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478678#M71393</link>
    <description>&lt;P&gt;Assuming that the results mistakenly omitted the combination of Company 2 with Class C, you could use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have out=want nodupkey;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; by variable_a variable_b;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the posted results are actually correct, however, you might want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by variable_a variable_b;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by variable_a;&lt;/P&gt;
&lt;P&gt;if first.variable_a;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more I think about it, the more I think the bottom program is the right one and the question you posted got it right.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 14:54:22 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-07-17T14:54:22Z</dc:date>
    <item>
      <title>Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478673#M71392</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;What I’m looking to do is to removes all duplicates of variable A so each variable A is unique to the output. However, a second variable (let’s call variable B) is a classification which has a desired hierarchy of the output.&lt;/P&gt;&lt;P&gt;If the hierarchy goes Class A, Class B, Class C then Class D then the below table&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Variable A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Variable B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class C&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class D&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would go into&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Variable A&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Variable B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class A&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class B&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Company 4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Class D&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478673#M71392</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-07-17T14:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478678#M71393</link>
      <description>&lt;P&gt;Assuming that the results mistakenly omitted the combination of Company 2 with Class C, you could use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have out=want nodupkey;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; by variable_a variable_b;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the posted results are actually correct, however, you might want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by variable_a variable_b;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by variable_a;&lt;/P&gt;
&lt;P&gt;if first.variable_a;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more I think about it, the more I think the bottom program is the right one and the question you posted got it right.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478678#M71393</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-17T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478682#M71395</link>
      <description>&lt;P&gt;Hi Astounding,&lt;/P&gt;&lt;P&gt;No that was omitted on purpose. Variable A has to be unique and as Class A is higher up in the hierarchy than Class C, the line Company 2 Class C is removed.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478682#M71395</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-07-17T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478683#M71396</link>
      <description>&lt;P&gt;OK, then go with the bottom program that I posted.&amp;nbsp; There is a requirement, however.&amp;nbsp; The sorted order must match the hierarchy.&amp;nbsp; In other words, within a company, the program selects the "smallest" value of variable_b.&amp;nbsp; So the "highest" priority in the hierarchy has to be the "smallest" value when sorting.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 14:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478683#M71396</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-17T14:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478685#M71397</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input VariableA	 $ &amp;amp;15. VariableB $ &amp;amp;15.;
cards;
Company 1	Class A
Company 2	Class A
Company 1	Class B
Company 3	Class B
Company 2	Class C
Company 4	Class D
;
data _null_;
if 0 then set have;
dcl hash H (dataset:'have',ordered: "A") ;
   h.definekey  ("variablea") ;
   h.definedata ("variablea", "variableb") ;
   h.definedone () ;
h.output(dataset:'want');
stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478685#M71397</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-17T15:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478694#M71400</link>
      <description>That's close but the next issue is that Variable B is not alphabetical. It is a list. Sorry that's my fault for not thinking and just putting A, B and C. If I use your second solution the order is not correct for the data step.</description>
      <pubDate>Tue, 17 Jul 2018 15:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478694#M71400</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-07-17T15:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478696#M71402</link>
      <description>&lt;P&gt;You just have to have 2 sort procedures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	 length var_A $9;
	 input var_A $ var_B $;
	 datalines;
Company_1 Class_A
Company_2 Class_A
Company_1 Class_B
Company_3 Class_B
Company_2 Class_C
Company_4 Class_D
;
proc print data=have;
run;
proc sort data=have;
	 by var_A var_B;
run;
proc sort nodupkey data=have out=want;
	 by var_A;
run;
proc print data=want;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;Obs var_A var_B &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Company_1&lt;/TD&gt;&lt;TD&gt;Class_A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Company_2&lt;/TD&gt;&lt;TD&gt;Class_A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Company_3&lt;/TD&gt;&lt;TD&gt;Class_B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Company_4&lt;/TD&gt;&lt;TD&gt;Class_D&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Jul 2018 15:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478696#M71402</guid>
      <dc:creator>EEng</dc:creator>
      <dc:date>2018-07-17T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478949#M71429</link>
      <description>&lt;P&gt;Hi EENG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you know how I would do that but using a custom sort for variable B? In reality the order is not alphabetical.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 07:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/478949#M71429</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-07-18T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479038#M71433</link>
      <description>&lt;P&gt;But there is an order to B, right? Can't you create a new field like, If var_B = 'Tree' then var_B_id=1; else if var_B='Plant' then var_B_id=2; Then sort by var_A var_B_id; Then nodupkey on var_A. This way you do create an order to the field.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479038#M71433</guid>
      <dc:creator>EEng</dc:creator>
      <dc:date>2018-07-18T13:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479060#M71434</link>
      <description>&lt;P&gt;that was one of the first things I've tried. The issue with using the order like that is that I want to order first by variable&amp;nbsp;A then&amp;nbsp;A but remove duplicates for A not B. Sorry, I'm probably not explaining myself well. Might help if I switch variables around. If you see table below, the order is by Var_b Var_a but then removing duplicates is Var_A from top to bottom in order Var_b Var_a. So lines in red would be removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Variable B&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Variable A&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1_VB&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Company 2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1_VB&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Company 1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;2_VB&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Company 2&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2_VB&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Company 3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;3_VB&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Company 3&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;3_VB&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Company 1&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this makes using proc sort hard because the order has to be the same for removing duplicates. I've also tried labelling using First.var_A but it comes up with the same issue that the order have to be just Var_a.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 14:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479060#M71434</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-07-18T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479086#M71440</link>
      <description>&lt;P&gt;Posted alternative questions asking for a counter that cannot be sorted. here: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/Counter-Variable-without-sorting/m-p/479082#M71438" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Counter-Variable-without-sorting/m-p/479082#M71438&lt;/A&gt;&lt;/P&gt;&lt;P&gt;now ill just limit for count =1 and that's done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479086#M71440</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-07-18T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Duplicates of variable A with hierarchy of variable B</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479099#M71441</link>
      <description>&lt;P&gt;Yeah, maybe I was not following. But looking at the table you had, maybe I need to see the data. I thought I was getting what you needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	 length var_A $9;
	 input var_B $ var_A $;
	 datalines;
1_VB Company_2
1_VB Company_1
2_VB Company_2
2_VB Company_3
3_VB Company_3
3_VB Company_1
;
proc print data=have noobs;
	 var var_B var_A;
run;
proc sort data=have;
	 by var_B var_A;
run;
proc print data=have noobs;
	 var var_B var_A;
run;
proc sort nodupkey data=have out=want;
	 by var_A;
run;
proc print data=want noobs;
	 var var_B var_A;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The input data...sorted...results&lt;/P&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;var_B var_A &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1_VB&lt;/TD&gt;&lt;TD&gt;Company_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_VB&lt;/TD&gt;&lt;TD&gt;Company_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_VB&lt;/TD&gt;&lt;TD&gt;Company_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_VB&lt;/TD&gt;&lt;TD&gt;Company_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_VB&lt;/TD&gt;&lt;TD&gt;Company_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_VB&lt;/TD&gt;&lt;TD&gt;Company_1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;var_B var_A &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1_VB&lt;/TD&gt;&lt;TD&gt;Company_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_VB&lt;/TD&gt;&lt;TD&gt;Company_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_VB&lt;/TD&gt;&lt;TD&gt;Company_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_VB&lt;/TD&gt;&lt;TD&gt;Company_3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_VB&lt;/TD&gt;&lt;TD&gt;Company_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3_VB&lt;/TD&gt;&lt;TD&gt;Company_3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;var_B var_A &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1_VB&lt;/TD&gt;&lt;TD&gt;Company_1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1_VB&lt;/TD&gt;&lt;TD&gt;Company_2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2_VB&lt;/TD&gt;&lt;TD&gt;Company_3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 18 Jul 2018 14:57:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Removing-Duplicates-of-variable-A-with-hierarchy-of-variable-B/m-p/479099#M71441</guid>
      <dc:creator>EEng</dc:creator>
      <dc:date>2018-07-18T14:57:00Z</dc:date>
    </item>
  </channel>
</rss>

