<?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 How can I join 2 tables and keep the data of columns with the same name? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184047#M46796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I've a little problem. How can I join 2 tables and keep the data of columns with the same name? The data of 2 tables is different, and i need make a new table with the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of tables are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Directa&lt;/LI&gt;&lt;LI&gt;Folios&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the same columns of both tables are called "Burks" and "Blartd". The output must be create a new table, with the name "Final".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 13:22:41 GMT</pubDate>
    <dc:creator>Francisco</dc:creator>
    <dc:date>2014-02-24T13:22:41Z</dc:date>
    <item>
      <title>How can I join 2 tables and keep the data of columns with the same name?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184047#M46796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I've a little problem. How can I join 2 tables and keep the data of columns with the same name? The data of 2 tables is different, and i need make a new table with the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of tables are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Directa&lt;/LI&gt;&lt;LI&gt;Folios&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the same columns of both tables are called "Burks" and "Blartd". The output must be create a new table, with the name "Final".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184047#M46796</guid>
      <dc:creator>Francisco</dc:creator>
      <dc:date>2014-02-24T13:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I join 2 tables and keep the data of columns with the same name?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184048#M46797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is easy: no.&lt;/P&gt;&lt;P&gt;You can rename the two column in input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data final;&lt;/P&gt;&lt;P&gt;&amp;nbsp; merge Directa Folios (rename=(Burks=folios_&lt;STRONG&gt;Burks Blartd=folios_Blartd&lt;/STRONG&gt;));&lt;/P&gt;&lt;P&gt;&amp;nbsp; by xxx;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you append you can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:08:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184048#M46797</guid>
      <dc:creator>Barnipaz</dc:creator>
      <dc:date>2014-02-24T14:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I join 2 tables and keep the data of columns with the same name?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184049#M46798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.Thanks for the answer. I try to explain with more details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset P1&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Position&lt;/TD&gt;&lt;TD width="64"&gt;Code&lt;/TD&gt;&lt;TD width="64"&gt;Class&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD&gt;AF&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD&gt;AG&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD&gt;AH&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;4&lt;/TD&gt;&lt;TD&gt;AI&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;5&lt;/TD&gt;&lt;TD&gt;AJ&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dataset P2&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="128"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Position&lt;/TD&gt;&lt;TD width="64"&gt;Code&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;6&lt;/TD&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;7&lt;/TD&gt;&lt;TD&gt;AB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;8&lt;/TD&gt;&lt;TD&gt;AC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;9&lt;/TD&gt;&lt;TD&gt;AD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;10&lt;/TD&gt;&lt;TD&gt;AE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I need the new data set call P_New:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Position&lt;/TD&gt;&lt;TD width="64"&gt;Code&lt;/TD&gt;&lt;TD width="64"&gt;Class&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD&gt;AF&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD&gt;AG&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD&gt;AH&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;4&lt;/TD&gt;&lt;TD&gt;AI&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;5&lt;/TD&gt;&lt;TD&gt;AJ&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;6&lt;/TD&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;7&lt;/TD&gt;&lt;TD&gt;AB&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;8&lt;/TD&gt;&lt;TD&gt;AC&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;9&lt;/TD&gt;&lt;TD&gt;AD&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;10&lt;/TD&gt;&lt;TD&gt;AE&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francisco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 15:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184049#M46798</guid>
      <dc:creator>Francisco</dc:creator>
      <dc:date>2014-02-25T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I join 2 tables and keep the data of columns with the same name?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184050#M46799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's an append.&lt;/P&gt;&lt;P&gt;Ypu can do with a datastep&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pi_1 P_new;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or with the proc append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc append base=P_1 data=P_new force; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is written by memory so some error could be in it. Test it and change it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 15:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184050#M46799</guid>
      <dc:creator>Barnipaz</dc:creator>
      <dc:date>2014-02-25T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I join 2 tables and keep the data of columns with the same name?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184051#M46800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you can just stack them&lt;/P&gt;&lt;P&gt;data final;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Directa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Folios;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as they are in the same positions, ie the data that you had presented earlier this will just stack the two of them on top of each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 21:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-I-join-2-tables-and-keep-the-data-of-columns-with-the/m-p/184051#M46800</guid>
      <dc:creator>overmar</dc:creator>
      <dc:date>2014-02-25T21:08:50Z</dc:date>
    </item>
  </channel>
</rss>

