<?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: Load data to volatile table in teradata in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697729#M213289</link>
    <description>Tom, we do not have the ability to use the real table in production. I tried multistmt=yes tpt=no but it is not helping much. Are there any other ways loading to volatile table can be made faster?</description>
    <pubDate>Mon, 09 Nov 2020 21:32:30 GMT</pubDate>
    <dc:creator>nickspencer</dc:creator>
    <dc:date>2020-11-09T21:32:30Z</dc:date>
    <item>
      <title>How to load data to volatile table in teradata?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697498#M213161</link>
      <description>&lt;P&gt;I have a sas dataset with around 80k records. I have to join/process this dataset with few teradata tables. But these teradata tables are huge with about 40 million records in each table.&lt;BR /&gt;Since I do not have access to create tables in teradata, I am creating volatile table and appending this dataset to volatile table but the problem is, it is taking too long to load/append this dataset to the volatile table. There are about 80k records and 30 columns. It takes about 2 hour in night but when I run in daytime it never completes.&lt;BR /&gt;I am using multistmt=yes tpt=no option (fastload/mutliload does not work with volatile table) but it is not helping at all. Please advice on what might be the right approach ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 20:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697498#M213161</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2021-06-04T20:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697514#M213167</link>
      <description>&lt;P&gt;Usually you need to tune database load options to get good loading performance.&lt;/P&gt;
&lt;P&gt;The two to try are DBCOMMIT:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p00lgy3xwh61b8n16kffwq3veagu.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p00lgy3xwh61b8n16kffwq3veagu.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and INSERTBUFF:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p06u7eb5ienq5in1wq9injrz8vh5.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p06u7eb5ienq5in1wq9injrz8vh5.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 06:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697514#M213167</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-09T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697656#M213239</link>
      <description>Does insertbuff work with teradata ?</description>
      <pubDate>Mon, 09 Nov 2020 16:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697656#M213239</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2020-11-09T16:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697707#M213275</link>
      <description>&lt;P&gt;Here is the Teradata-specific doc:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p0gy4y5g1dy090n18jq1riw5g8d5.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=acreldb&amp;amp;docsetTarget=p0gy4y5g1dy090n18jq1riw5g8d5.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like INSERTBUFF isn't available but DBCOMMIT definitely is.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 20:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697707#M213275</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-09T20:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697716#M213280</link>
      <description>I tried dbcommit=0 but it has not helped at all. It takes forever to run the append step.&lt;BR /&gt;Is there any other way to speed up the append process ?</description>
      <pubDate>Mon, 09 Nov 2020 21:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697716#M213280</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2020-11-09T21:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697718#M213281</link>
      <description>&lt;P&gt;Upload the data to a real table and then copy it to the volatile table.&lt;/P&gt;
&lt;P&gt;Then you can use FASTLOAD/TPT options.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 21:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697718#M213281</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-11-09T21:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697729#M213289</link>
      <description>Tom, we do not have the ability to use the real table in production. I tried multistmt=yes tpt=no but it is not helping much. Are there any other ways loading to volatile table can be made faster?</description>
      <pubDate>Mon, 09 Nov 2020 21:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697729#M213289</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2020-11-09T21:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697779#M213310</link>
      <description>&lt;P&gt;Try DBCOMMIT = 1000, 2000, 3000 etc. What method are you using? PROC APPEND?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 00:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697779#M213310</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-10T00:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697792#M213318</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;, I am using the proc append</description>
      <pubDate>Tue, 10 Nov 2020 03:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697792#M213318</guid>
      <dc:creator>nickspencer</dc:creator>
      <dc:date>2020-11-10T03:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697793#M213319</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206798"&gt;@nickspencer&lt;/a&gt;&amp;nbsp; - The DBCOMMIT default for PROC APPEND is 0 so there is no point trying that value. As already stated, try 1,000, 2,000, 3,000 etc to see if it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Failing that I suggest trying Tech Support.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 03:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697793#M213319</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-11-10T03:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697795#M213320</link>
      <description>&lt;P&gt;1. Do you use the ODBC driver or the native SAS/Access product?&lt;/P&gt;
&lt;P&gt;2. I think the maximum query length is 1MB, so depending on the key length, maybe just add the 80,000 values to the query to only bring back the records you need.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 05:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697795#M213320</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-10T05:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load data to volatile table in teradata</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697798#M213322</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206798"&gt;@nickspencer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Tom, we do not have the ability to use the real table in production. I tried multistmt=yes tpt=no but it is not helping much. Are there any other ways loading to volatile table can be made faster?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Don't load it to THE real table. Load it to A real table.&amp;nbsp; If you don't have a database you can write into ask your DBA to create one. Either a personal database or a team database.&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname &amp;amp;permlib teradata .... ;
proc append data=&amp;amp;in
  base=&amp;amp;permlib..&amp;amp;permname (fastload=yes dbcreate_table_opts='no primary index')
;
run;
proc sql ;
  connect using &amp;amp;permlib ;
  execute by &amp;amp;permlib
   (create multiset volatile table "&amp;amp;out" as
       (select * from "&amp;amp;permdb"."&amp;amp;permname")
        with data
        on commit preserve rows
   );
  execute by &amp;amp;permlib
    ( drop table "&amp;amp;permdb"."&amp;amp;permname" )
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Nov 2020 05:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-load-data-to-volatile-table-in-teradata/m-p/697798#M213322</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-11-10T05:10:24Z</dc:date>
    </item>
  </channel>
</rss>

