<?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 Append a large dataset to multiple datasets at the same time in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218205#M53663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large dataset that is appended to multiple datasets (i.e. monthly and history oracle tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am using bulkload to load it into these two Oracle tables.&amp;nbsp; It is working just fine but it takes twice the amount of time since it creates the same DAT file again to load to next table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can append this dataset to multiple datasets at the same time?&amp;nbsp; Are there options to re-use the BL.DAT file without recreating?&amp;nbsp; I googled for answers to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 16:28:45 GMT</pubDate>
    <dc:creator>Yeti</dc:creator>
    <dc:date>2015-04-09T16:28:45Z</dc:date>
    <item>
      <title>Append a large dataset to multiple datasets at the same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218205#M53663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a large dataset that is appended to multiple datasets (i.e. monthly and history oracle tables).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am using bulkload to load it into these two Oracle tables.&amp;nbsp; It is working just fine but it takes twice the amount of time since it creates the same DAT file again to load to next table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can append this dataset to multiple datasets at the same time?&amp;nbsp; Are there options to re-use the BL.DAT file without recreating?&amp;nbsp; I googled for answers to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 16:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218205#M53663</guid>
      <dc:creator>Yeti</dc:creator>
      <dc:date>2015-04-09T16:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Append a large dataset to multiple datasets at the same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218206#M53664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should think it possible to upload the set to Oracle once and then use pass through SQL to append to the target tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218206#M53664</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-09T17:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Append a large dataset to multiple datasets at the same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218207#M53665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is the bulkload process that is the dedicated fastest Oracle loader SQL-loader that is creating tables at Oracle.&amp;nbsp; &lt;A href="http://support.sas.com/resources/papers/proceedings09/099-2009.pdf" title="http://support.sas.com/resources/papers/proceedings09/099-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/099-2009.pdf&lt;/A&gt;. Without the loading process is much slower (journaling/logging and commits). It is the SAS (Is it?) creating that dat-file yup &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n045jyrk6nyavjn1292tl571mt8p.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n045jyrk6nyavjn1292tl571mt8p.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Sixth Edition&lt;/A&gt;&lt;BR /&gt;For reuse that dat-fil it must&lt;/P&gt;&lt;P&gt;a/ be able to be kept. BL_DELETE_DATAFILE=NO (yes is default)&lt;/P&gt;&lt;P&gt;b/ reuse that dataset letting SAS not create that .dat file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I see what you mean there is nothing there to stop that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The only options would be to start the SLQ-Loader manualy/scripted. &lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1006645" title="http://docs.oracle.com/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1006645"&gt;SQL*Loader Control File Reference&lt;/A&gt; probably not worth all the effort introducing new risks/errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tip: review the&amp;nbsp; &lt;SPAN class="xis-keyword"&gt;BL_DEFAULT_DIR=&lt;/SPAN&gt;&lt;SPAN class="xis-argRequired"&gt;'&lt;SPAN class="xis-userSuppliedSyntaxValue"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/p0mvigcmr6t8dqn1ltnxfud9zrys.htm#p162wzx94v0l48n1byja4f76ckq5" title="Description of syntax: host-specific-directory-path"&gt;host-specific-directory-path&lt;/A&gt;&lt;/SPAN&gt;' as that one should fast and big enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 18:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218207#M53665</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-09T18:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Append a large dataset to multiple datasets at the same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218208#M53666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much gentlemen.&amp;nbsp; I think I am not going to spend too much time on this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will keep bulkload for one process and for another load process, I think will just use INSERTBUFF=32767 buffsize=32000 in the libname option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all.&amp;nbsp; Have a great weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 15:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218208#M53666</guid>
      <dc:creator>Yeti</dc:creator>
      <dc:date>2015-04-11T15:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Append a large dataset to multiple datasets at the same time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218209#M53667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the "best" way would be to load the source table once via bulk into an Oracle staging table (not sure if it would work with a global temporary table) and then use pass-through SQL with an append hint in a multi-table insert. Something like below:&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code" style="font-weight: inherit; font-style: inherit;"&gt;INSERT /*+APPEND */ ALL&lt;BR /&gt;&amp;nbsp; INTO &amp;lt;Ora table 1&amp;gt;&lt;BR /&gt;&amp;nbsp; INTO &lt;SPAN style="font-family: monospace; font-size: 13.3333330154419px;"&gt;&amp;lt;Ora table 2&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;SELECT&amp;nbsp; * from &amp;lt;staging_table&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In case you have table partitioning then loading directly into a partition can also speed up things quite a bit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em; background-color: #ffffff;"&gt;"I think will just use INSERTBUFF=32767 buffsize=32000": Make sure you set also DBCOMMIT to something better than the installation default.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2015 04:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Append-a-large-dataset-to-multiple-datasets-at-the-same-time/m-p/218209#M53667</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-04-12T04:39:00Z</dc:date>
    </item>
  </channel>
</rss>

