<?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: Database append in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718642#M222429</link>
    <description>&lt;P&gt;Bulk load?&lt;/P&gt;
&lt;P&gt;I mean that is the obvious thing to try.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 15:56:31 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2021-02-11T15:56:31Z</dc:date>
    <item>
      <title>Database append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718563#M222407</link>
      <description>Hello SAS people&lt;BR /&gt;I have question I am using a append to load the data in odbc SQL server&lt;BR /&gt;&lt;BR /&gt;I was using the libname statement as below to append some 8.5 million data with 100 columns which is working fine but taking around 1 hour to complete the load.&lt;BR /&gt;&lt;BR /&gt;Do you think it is there a way to optimize it?&lt;BR /&gt;Shall I increase the INSERTBUFF to 100,000? Or any bulkload things please suggest.&lt;BR /&gt;&lt;BR /&gt;Libname mylib ODBC DSN=XXX schema= xxx UID=XXX PWD=XXX IGNORE_READ_ONLY_COLUMNS= YES INSERTBUFF= 10000</description>
      <pubDate>Thu, 11 Feb 2021 12:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718563#M222407</guid>
      <dc:creator>shiv999</dc:creator>
      <dc:date>2021-02-11T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Database append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718610#M222413</link>
      <description>&lt;P&gt;It's hard to say if increasing the buff size would help, it could just be that you are dealing with a large dataset that takes time to access. This type of question requires lots of benchmarking. The best way to do this would be to provide us with a sample dataset and code so we can test.&amp;nbsp; You can just use SAS Data instead of SQL Server and recreate your append so we can test ourselves.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you decide that is too much work to provide a sample and would like to do your own benchmarking then you can use this SAS option to help.&lt;/P&gt;
&lt;P&gt;Fullstimer sas option&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/scalability/tools/fullstim/index.html" target="_blank"&gt;FULLSTIMER SAS Option&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also benchmark other programs in the future and collect performance metrics using a program that would read the log produced by your program to store those metrics. That program is called Logparse, I have included a link for your information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/219-30.pdf" target="_blank"&gt;219-30: Programmatically Measure SAS® Application Performance on Any Computer Platform with the New LOGPARSE SAS Macro&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Carmine&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718610#M222413</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2021-02-11T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Database append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718617#M222415</link>
      <description>&lt;P&gt;Please post proc contents of the data you try to append, so that we see how large it really is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718617#M222415</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-11T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Database append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718642#M222429</link>
      <description>&lt;P&gt;Bulk load?&lt;/P&gt;
&lt;P&gt;I mean that is the obvious thing to try.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718642#M222429</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-02-11T15:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Database append</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718738#M222463</link>
      <description>&lt;P&gt;Another option to try is &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" target="_blank" rel="noopener"&gt;DBCOMMIT&lt;/A&gt; which is set to 1000 by default. You would probably want to keep this value similar to INSERTBUFF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found from experience that experimenting with different values of both INSERTBUFF and DBCOMMIT can make a big difference in table insert times.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 20:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Database-append/m-p/718738#M222463</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-11T20:26:37Z</dc:date>
    </item>
  </channel>
</rss>

