<?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: append datasets and new variables that exist in the added data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305721#M65240</link>
    <description>&lt;P&gt;In SQL this is UNION ALL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set table1 table2:&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;prox sql;&lt;/P&gt;
&lt;P&gt;create table want2 as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select * from table1&lt;/P&gt;
&lt;P&gt;union all&lt;/P&gt;
&lt;P&gt;select * from table2;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 17:41:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-10-19T17:41:54Z</dc:date>
    <item>
      <title>append datasets and new variables that exist in the added data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305719#M65238</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to vertically append new data to an existing dataset but also bring over the new variables that don't exist in the base dataset? I thought 'force' would do it but it is not carrying over the new variables. Proc datasets with append doesn't do it either. What I want is a full join which includes all observations from both and all variables from both.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc append base=dataprep3 data=AppendEMR force ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305719#M65238</guid>
      <dc:creator>CP2</dc:creator>
      <dc:date>2016-10-19T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: append datasets and new variables that exist in the added data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305721#M65240</link>
      <description>&lt;P&gt;In SQL this is UNION ALL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set table1 table2:&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;prox sql;&lt;/P&gt;
&lt;P&gt;create table want2 as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select * from table1&lt;/P&gt;
&lt;P&gt;union all&lt;/P&gt;
&lt;P&gt;select * from table2;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305721#M65240</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-19T17:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: append datasets and new variables that exist in the added data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305727#M65242</link>
      <description>&lt;P&gt;too simple! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 18:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305727#M65242</guid>
      <dc:creator>CP2</dc:creator>
      <dc:date>2016-10-19T18:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: append datasets and new variables that exist in the added data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305751#M65251</link>
      <description>&lt;P&gt;Note that if you have the same variable name but with different types you'll get an error.&lt;/P&gt;
&lt;P&gt;If a same named variable has different lengths assigned you will get a warning message about possible truncation of data. Pay attention to these as you may actually lose critical data.&lt;/P&gt;
&lt;P&gt;Also if other variable characteristics such as assigned label or format differs then you may want to verify that the desired one is in the results.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/append-datasets-and-new-variables-that-exist-in-the-added-data/m-p/305751#M65251</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-19T19:47:29Z</dc:date>
    </item>
  </channel>
</rss>

