<?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: How to append CAS tables with different columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712084#M219452</link>
    <description>&lt;P&gt;Could try proc SQL outer union or proc append. This paper shows all the way to combine data vertically and you could read more about the efficiency as well as see examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3161-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3161-2019.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2021 12:00:06 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2021-01-18T12:00:06Z</dc:date>
    <item>
      <title>How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712060#M219441</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I need to append two tables loaded in SAS:&lt;BR /&gt;- STORIC_TABLE of about 1.2 TB and 50 columns&lt;BR /&gt;- TAB1 of about 30 GB and 51 columns (one column more than the STORIC_TABLE)&lt;BR /&gt;I would like to know which is the most optimized code to append the TAB1 to the STORIC_TABLE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, due to the presence of one more field, the STORIC_TABLE will have missing values corresponding the new TAB1 field&lt;BR /&gt;thanks&lt;BR /&gt;ElisabettaC&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 10:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712060#M219441</guid>
      <dc:creator>ElisabettaC</dc:creator>
      <dc:date>2021-01-18T10:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712073#M219447</link>
      <description>You could just concatenate them.&lt;BR /&gt;&lt;BR /&gt;Data stacked;&lt;BR /&gt;Set tab1 storic_table;&lt;BR /&gt;Run;</description>
      <pubDate>Mon, 18 Jan 2021 11:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712073#M219447</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-18T11:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712076#M219450</link>
      <description>Hi lrackley,&lt;BR /&gt;thanks for your quick reply.&lt;BR /&gt;I tried this solution but it's not very efficient because it rewrites the first table which is too big (about 1.2 tb).&lt;BR /&gt;Any other suggestions without rewriting tables?&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jan 2021 11:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712076#M219450</guid>
      <dc:creator>ElisabettaC</dc:creator>
      <dc:date>2021-01-18T11:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712084#M219452</link>
      <description>&lt;P&gt;Could try proc SQL outer union or proc append. This paper shows all the way to combine data vertically and you could read more about the efficiency as well as see examples.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3161-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3161-2019.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 12:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712084#M219452</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-18T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712099#M219457</link>
      <description>The problem is that proc sql with create table statement and proc append don't work with SAS Viya CAS tables.&lt;BR /&gt;Suggestions on how to use OUTER UNION CORR in PROC FEDSQL?</description>
      <pubDate>Mon, 18 Jan 2021 12:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712099#M219457</guid>
      <dc:creator>ElisabettaC</dc:creator>
      <dc:date>2021-01-18T12:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712103#M219459</link>
      <description>Haha I actually don’t know what CAS is. I don’t use Viya! I found this documentation. It looks like union is supported in FedSQL.&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=n1s9tikr56z85cn11n5hou1gzj2v.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=n1s9tikr56z85cn11n5hou1gzj2v.htm&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Mon, 18 Jan 2021 12:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712103#M219459</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-18T12:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712118#M219468</link>
      <description>&lt;P&gt;Unfortunately, the outer union corr option doesn't work with proc fedsql, as shown in the image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ElisabettaC_0-1610977542722.png" style="width: 700px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53604i04D8BC45A0EF2328/image-dimensions/700x343?v=v2" width="700" height="343" role="button" title="ElisabettaC_0-1610977542722.png" alt="ElisabettaC_0-1610977542722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 13:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712118#M219468</guid>
      <dc:creator>ElisabettaC</dc:creator>
      <dc:date>2021-01-18T13:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712121#M219471</link>
      <description>&lt;P&gt;The link I sent you said "corresponding". did you try it with that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712121#M219471</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-18T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712122#M219472</link>
      <description>&lt;P&gt;"Union corresponding" doesn't fail but doesn't return the expected result!&lt;BR /&gt;With union corresponding&amp;nbsp; it appends only the fields that match (50 fields) and doesn't create the new field.&lt;/P&gt;&lt;P&gt;The expected table must have 51 columns.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712122#M219472</guid>
      <dc:creator>ElisabettaC</dc:creator>
      <dc:date>2021-01-18T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712123#M219473</link>
      <description>&lt;P&gt;Why do you have to use corresponding? What if you just try "outer union"? Do you get 51 then?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712123#M219473</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2021-01-18T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to append CAS tables with different columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712128#M219474</link>
      <description>&lt;P&gt;No, I get a syntax error&amp;nbsp;(same error even with outer union corr)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ElisabettaC_0-1610980993754.png" style="width: 662px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53605i569CD05D12E9A5C2/image-dimensions/662x282?v=v2" width="662" height="282" role="button" title="ElisabettaC_0-1610980993754.png" alt="ElisabettaC_0-1610980993754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 14:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-append-CAS-tables-with-different-columns/m-p/712128#M219474</guid>
      <dc:creator>ElisabettaC</dc:creator>
      <dc:date>2021-01-18T14:44:10Z</dc:date>
    </item>
  </channel>
</rss>

