<?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: Insertbuff= option for SAS SQL Pass-through? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691958#M210686</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4784"&gt;@BenConner&lt;/a&gt;&amp;nbsp; - What SAS/ACCESS products are installed / licensed? The suggestions I've posted will work equally as well with SAS/ACCESS to Oracle.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2020 20:16:45 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-10-15T20:16:45Z</dc:date>
    <item>
      <title>Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/690817#M210185</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see the insertbuff= option for libname statements for relational databases but don't see a corresponding option for arguments available for the pass-through facility.&amp;nbsp; Read buffers are available but not write buffers?&amp;nbsp; I must not be looking at it correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FWIW, this is using Oracle with SAS 9.4 M5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 19:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/690817#M210185</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-11T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/690826#M210191</link>
      <description>&lt;P&gt;INSERTBUFF is only relevant when inserting rows into a database table from a SAS table. You don't do that in SQL passthru but usually via a LIBNAME like so:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sqlsrvr ODBC noprompt = "&amp;lt;sql connection string&amp;gt;" insertbuff = 10000;

proc datasets library = sqlsrvr;
  append base = MyDatabaseTable data = WORK.MySASTable;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Having said that you can do this which will apply relevant LIBNAME options:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname sqlsrvr ODBC noprompt = "&amp;lt;sql connection string&amp;gt;" insertbuff = 10000;

proc sql;
  connect using sqlsrvr;
  &amp;lt;put your passthru query here&amp;gt;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Oct 2020 01:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/690826#M210191</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-12T01:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/690868#M210200</link>
      <description>&lt;P&gt;On top of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;'s perfect explanations, don't forget to consider the DBCOMMIT option when inserting data.&lt;/P&gt;
&lt;P&gt;When retrieving data, the READBUFF option can be used.&lt;/P&gt;
&lt;P&gt;Other options exist too, depending on the database and the connection method, such as FASTLOAD.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 01:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/690868#M210200</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-12T01:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691788#M210618</link>
      <description>Sorry for the delay; SAS T.S. looped in and suggested some changes.  Resulted in updates to a lot of programs.  That said, the root cause hasn't really been found, esp. on pass-throughs.  I'll run this by the folks who can decide to try this.  I like it.  Kind of back-doors the use of a libname statement. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Will let you know how this goes.&lt;BR /&gt;&lt;BR /&gt;--Ben</description>
      <pubDate>Thu, 15 Oct 2020 10:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691788#M210618</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-15T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691790#M210619</link>
      <description>Sigh.  They don't have SAS Access for ODBC licensed.</description>
      <pubDate>Thu, 15 Oct 2020 11:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691790#M210619</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-15T11:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691958#M210686</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4784"&gt;@BenConner&lt;/a&gt;&amp;nbsp; - What SAS/ACCESS products are installed / licensed? The suggestions I've posted will work equally as well with SAS/ACCESS to Oracle.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 20:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691958#M210686</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-15T20:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691960#M210688</link>
      <description>Oh!  They do have Access for Oracle.  I'll put together a test case for them to try.&lt;BR /&gt;&lt;BR /&gt;Thanks much!&lt;BR /&gt;--Ben</description>
      <pubDate>Thu, 15 Oct 2020 20:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/691960#M210688</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-15T20:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692025#M210718</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; &amp;nbsp;They do have Access for Oracle&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Look at option&amp;nbsp; FASTLOAD then.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 01:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692025#M210718</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-10-16T01:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692124#M210776</link>
      <description>&lt;P&gt;Thanks to all for your help.&amp;nbsp; This will alleviate the remaining problem the client has been having with failures through the pass-through facility.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a pass-through via a libname is not something I would have thought possible.&amp;nbsp; Nice!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 13:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692124#M210776</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-16T13:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692500#M210988</link>
      <description>As a followup to this, one of the common parameters we use in the Connect To Oracle statement is a (preservecomments) argument.&lt;BR /&gt;I don't see a way to enter this on a connect using &amp;lt;libname&amp;gt; ; statement.  Are the comments (in this case, Oracle hints) discarded as they appear to be comments to SAS?</description>
      <pubDate>Mon, 19 Oct 2020 12:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692500#M210988</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-19T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692683#M211055</link>
      <description>&lt;P&gt;According to this link, PRESERVE_COMMENTS works on LIBNAMEs:&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=p1qft7bzdij79zn1bxh59mc3w8xj.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=p1qft7bzdij79zn1bxh59mc3w8xj.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And yes you need to use this when including Oracle hints.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 19:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692683#M211055</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-19T19:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insertbuff= option for SAS SQL Pass-through?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692719#M211084</link>
      <description>Thanks for catching that.  I'd searched but hadn't seen it.  Obviously flunked the reading test. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;--Ben</description>
      <pubDate>Mon, 19 Oct 2020 22:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insertbuff-option-for-SAS-SQL-Pass-through/m-p/692719#M211084</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2020-10-19T22:21:16Z</dc:date>
    </item>
  </channel>
</rss>

