<?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: PROC APPEND Alternatives in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543504#M16708</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266367"&gt;@dharmesh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi team, I need help to append non matching data in 3 tables&amp;nbsp; Table 1 Unique id Value 1 a 2 b Table 2 Unique id Value 1 a 3 c Table 3 Unique id Value 3 c 4 d Result expected Unique id Value 1 a 2 b 3 c 4 d SAS ega version 7.2 Can I do this in SAS ega in advance expressions or by some join or using advance expression&amp;nbsp; Please guide&amp;nbsp; Thanks in advance. Dharmesh&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you seriously trying to insult us by posting like this? One ugly spaghetti, almost unreadable, and if data is included somewhere, it's unusable.&lt;/P&gt;
&lt;P&gt;Please put a little more effort into your question.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 12:30:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-03-15T12:30:28Z</dc:date>
    <item>
      <title>PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543451#M16706</link>
      <description>Hi team, I need help to append non matching data in 3 tables&amp;nbsp; Table 1 Unique id Value 1 a 2 b Table 2 Unique id Value 1 a 3 c Table 3 Unique id Value 3 c 4 d Result expected Unique id Value 1 a 2 b 3 c 4 d SAS ega version 7.2 Can I do this in SAS ega in advance expressions or by some join or using advance expression&amp;nbsp; Please guide&amp;nbsp; Thanks in advance. Dharmesh</description>
      <pubDate>Fri, 15 Mar 2019 09:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543451#M16706</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2019-03-15T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543469#M16707</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266367"&gt;@dharmesh&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for future posts please add the data as a data step with datalines in your post to speed up evaluation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need any logic like that one table is leading or that the id value combinations could be different you can simply use:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
 create table work.want as
 select distinct * from work.have;
 quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where want is the table that contains all three of the tables just appended.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543469#M16707</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-03-15T10:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543504#M16708</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266367"&gt;@dharmesh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi team, I need help to append non matching data in 3 tables&amp;nbsp; Table 1 Unique id Value 1 a 2 b Table 2 Unique id Value 1 a 3 c Table 3 Unique id Value 3 c 4 d Result expected Unique id Value 1 a 2 b 3 c 4 d SAS ega version 7.2 Can I do this in SAS ega in advance expressions or by some join or using advance expression&amp;nbsp; Please guide&amp;nbsp; Thanks in advance. Dharmesh&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you seriously trying to insult us by posting like this? One ugly spaghetti, almost unreadable, and if data is included somewhere, it's unusable.&lt;/P&gt;
&lt;P&gt;Please put a little more effort into your question.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 12:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543504#M16708</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-15T12:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543843#M16715</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266367"&gt;@dharmesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about EG's Append Table task and then a Proc Sort to remove duplicates.&lt;/P&gt;
&lt;P&gt;Alternatively use a SQL UNION CORR without keyword ALL. This will also concatenated and dedup your data.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 22:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543843#M16715</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-03-17T22:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543908#M16719</link>
      <description>&lt;P&gt;Well I didn't mean to. Regret for putting you in trouble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could preview the post as I had mentioned in my query and hence was posted .. But I will try to be careful&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dharmesh&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543908#M16719</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2019-03-18T09:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543912#M16720</link>
      <description>&lt;P&gt;Thanks Patric &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It worked using below code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DATA FINAL_BASE;&lt;BR /&gt;SET table 1 table2 table3;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC SORT DATA=FINAL_BASE;BY AGREEMENTNO;RUN;&lt;BR /&gt;DATA FINAL_UNQ;&lt;BR /&gt;SET FINAL_BASE;&lt;BR /&gt;BY AGREEMENTNO;&lt;BR /&gt;IF FIRST.AGREEMENTNO;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;PROC SORT DATA=FINAL_UNQ;BY PAN_NO;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dharmesh&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543912#M16720</guid>
      <dc:creator>dharmesh</dc:creator>
      <dc:date>2019-03-18T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND Alternatives</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543923#M16721</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266367"&gt;@dharmesh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to show you how that would look like using SQL UNION CORR.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class1 class2 class3;
  set sashelp.class(where=(name='Alfred'));
  output;
  output;
  name='Other';
  output class2;
run;

proc sql;
  create table want as
    select * from class1
    union corr
    select * from class2
    union corr
    select * from class3
    ;
quit;

proc print data=want;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This only works if you've got the same columns in all source tables AND if you really want to de-duplicate records which is different to just select the first record per sort key (where other variables within the same key still could have different values).&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/PROC-APPEND-Alternatives/m-p/543923#M16721</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-03-18T09:59:49Z</dc:date>
    </item>
  </channel>
</rss>

