<?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: SAS &amp; Database tables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102650#M28745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: connect to odbc (dsn=&amp;amp;dsn uid=&amp;amp;uid pwd=&amp;amp;pwd &lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;READBUFF = 32767)&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest you also check out the relevant SAS help, either in your installation or online, as all this type of information is there at your fingertips! In my experience changing READBUFF can significantly improve read performance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 20:15:25 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2012-07-11T20:15:25Z</dc:date>
    <item>
      <title>SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102640#M28735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use SAS to pull some tables from an ODBC connection. Just wondering if there is any way to make this process faster from a code side? I already use the compress function and only pull variables I need. Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;connect to&amp;nbsp;&amp;nbsp; odbc (dsn=&amp;amp;dsn uid=&amp;amp;uid pwd=&amp;amp;pwd);&lt;/P&gt;
&lt;P&gt;create table data.table1 as&lt;/P&gt;
&lt;P&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * from connection to odbc &lt;/P&gt;
&lt;P&gt;(&lt;/P&gt;
&lt;P&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.NAME&lt;/P&gt;
&lt;P&gt;from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.REASON&lt;/P&gt;
&lt;P&gt;); &lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any other ways to make the pull faster?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 13:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102640#M28735</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-07-09T13:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102641#M28736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if this will help...&lt;/P&gt;&lt;P&gt;If you already have a subset of ID's that you want from this table, you could just pull those ID's instead of all ID's, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; connect to odbc (dsn=&amp;amp;dsn uid=&amp;amp;uid pwd=&amp;amp;pwd);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; create table data.table1 as&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * from connection to odbc &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (select SHARED.ID,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.NAME&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp; SHARED.REASON)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as sql1(ID, NAME)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner join data.Subset_Of_IDs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sas1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp; sql1.ID = sas1.ID;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; disconnect from odbc;&amp;nbsp; &lt;BR /&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 14:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102641#M28736</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-07-09T14:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102642#M28737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion! I do need the entire table so unfortunately I cannot limit to a subset of IDs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 14:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102642#M28737</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-07-09T14:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102643#M28738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you switch to using a direct access to the source database rather than using ODBC?&lt;/P&gt;&lt;P&gt;You should get better performance accessing the data from say an Oracle table using SAS/Access to Oracle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 17:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102643#M28738</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-07-09T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102644#M28739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your connection is set up to pre-read very few records, bumping that number might help. I got a huge increase once going from pre-reading 10 records to 500. Frequently the pre-read is set low because DBMSs tend to be used for transaction processing, not bulk retrievals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102644#M28739</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-07-09T18:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102645#M28740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the READBUFF= option on your ODBC connect statement: READBUFF = 32767. 32767 is usually the maximum setting depending on the database you are reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 20:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102645#M28740</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-07-09T20:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102646#M28741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would this go in the code? Would it be:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;proc sql;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;connect to&amp;nbsp;&amp;nbsp; odbc (dsn=&amp;amp;dsn uid=&amp;amp;uid pwd=&amp;amp;pwd) &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;READBUFF = 32767&lt;/SPAN&gt; ;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create table data.table1 as&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * from connection to odbc&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.ID,&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.NAME&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHARED.REASON&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;);&lt;/P&gt;
&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;quit;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 17:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102646#M28741</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-07-10T17:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102647#M28742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is this something I set in sas? Or on database end?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;If in SAS how and where should this go?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 17:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102647#M28742</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-07-10T17:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102648#M28743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the situation I had, it was in the ODBC connection. You'll need to check with your DBMS documentation to find the right parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 13:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102648#M28743</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-07-11T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102649#M28744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom, can someone please tell me how to use the readbuff in my example query setup?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 16:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102649#M28744</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-07-11T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS &amp; Database tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102650#M28745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: connect to odbc (dsn=&amp;amp;dsn uid=&amp;amp;uid pwd=&amp;amp;pwd &lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;READBUFF = 32767)&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest you also check out the relevant SAS help, either in your installation or online, as all this type of information is there at your fingertips! In my experience changing READBUFF can significantly improve read performance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 20:15:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Database-tables/m-p/102650#M28745</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-07-11T20:15:25Z</dc:date>
    </item>
  </channel>
</rss>

