<?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: optimizing query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279212#M56247</link>
    <description>&lt;P&gt;Well, if you have to pull all that over the network, a quick calculation resolves to a speed of 10.5 MB/sec, which is about par for a 100 Mbit network, but slow by an order of magnitude for a 1 Gbit network.&lt;/P&gt;
&lt;P&gt;So you could either try to improve network throughput, or reduce the size of data that has to cross the network by using SQL pass-through to subset records and/or drop columns that are not needed.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 06:31:35 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-06-22T06:31:35Z</dc:date>
    <item>
      <title>optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278575#M56051</link>
      <description>&lt;P&gt;I want to create SAS dataset from DB2 table (27423639 records). Its taking about 1 hr 50 minutes. How can I optimize it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 05:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278575#M56051</guid>
      <dc:creator>paritosh176</dc:creator>
      <dc:date>2016-06-20T05:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278577#M56052</link>
      <description>&lt;P&gt;Is it a straight extract? Are you pulling it across a network?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;27Million records isn't a huge file, probably about 5-8GB? But moving things across a network can take time and that's probably your bottleneck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you currently creating the dataset, a data step, proc sql, proc copy/datasets?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 05:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278577#M56052</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T05:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278578#M56053</link>
      <description>1)Add option
 readbuff=100000
into your LIBNAME statement.

2)If you use Pass-Through SQL , that may give you faster .</description>
      <pubDate>Mon, 20 Jun 2016 05:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278578#M56053</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-20T05:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278587#M56056</link>
      <description>&lt;P&gt;What is the observation size of the SAS dataset?&lt;/P&gt;
&lt;P&gt;And how do you retrieve the data (post code with anonymized table names)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also guess that your network may be the cause, but ~2hrs for ~8 GB would translate to ~1MB/s, which would be very slow, but could be if you do it across a slower WAN connection.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 07:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/278587#M56056</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-20T07:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279210#M56245</link>
      <description>&lt;P&gt;Size of db2 table is around 65GB(observation size 3520 bytes).&lt;/P&gt;&lt;P&gt;Want to create SAS dataset from this db2 table.&lt;/P&gt;&lt;P&gt;I have already used readbuff like options but no improvement.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279210#M56245</guid>
      <dc:creator>paritosh176</dc:creator>
      <dc:date>2016-06-22T06:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279211#M56246</link>
      <description>&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;I am using pass through and already tried readbuff with different values but no&amp;nbsp;significant&amp;nbsp;improvement in performance.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279211#M56246</guid>
      <dc:creator>paritosh176</dc:creator>
      <dc:date>2016-06-22T06:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279212#M56247</link>
      <description>&lt;P&gt;Well, if you have to pull all that over the network, a quick calculation resolves to a speed of 10.5 MB/sec, which is about par for a 100 Mbit network, but slow by an order of magnitude for a 1 Gbit network.&lt;/P&gt;
&lt;P&gt;So you could either try to improve network throughput, or reduce the size of data that has to cross the network by using SQL pass-through to subset records and/or drop columns that are not needed.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279212#M56247</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-22T06:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279213#M56248</link>
      <description>&lt;P&gt;Size of db2 table is around 89 GB(observation size 3520 bytes).&lt;/P&gt;&lt;P&gt;I am using proc sql to create dataset from db2 table.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279213#M56248</guid>
      <dc:creator>paritosh176</dc:creator>
      <dc:date>2016-06-22T06:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279214#M56249</link>
      <description>&lt;P&gt;Fine. Still the question remains: do you pull all that over the network?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 06:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279214#M56249</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-22T06:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: optimizing query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279228#M56256</link>
      <description>&lt;PRE&gt;
Another alternative way is using PROC DBLOAD . But it is very old.

The following code doesn't make you faster ?

libname xx db2 dsn=.........    readbuff=100000;
proc copy in=xx out=work;
 select xxxx;
run;

&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jun 2016 07:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/optimizing-query/m-p/279228#M56256</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-06-22T07:41:24Z</dc:date>
    </item>
  </channel>
</rss>

