<?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: Code Optimization in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847896#M41824</link>
    <description>&lt;P&gt;Please post the complete log of the SQL step that runs too long.&lt;/P&gt;
&lt;P&gt;Also let us know how many observations you pull, and the observation size.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 19:58:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-12-05T19:58:20Z</dc:date>
    <item>
      <title>Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847759#M41820</link>
      <description>&lt;P&gt;I need to extract the data from oracle (Transactional data) but it is taking too much time. For extraction single date data, its taking 5min.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried,&lt;/P&gt;&lt;P&gt;Passthrough query&lt;/P&gt;&lt;P&gt;normal proc sql by assigng library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not worked. Any idea ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847759#M41820</guid>
      <dc:creator>kuppusamy</dc:creator>
      <dc:date>2022-12-05T12:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847761#M41821</link>
      <description>&lt;P&gt;Some hard facts could help understand your scenario (table structure, example query, logs).&lt;/P&gt;
&lt;P&gt;But given what you wrote, I don't think it's an optimizing code task.&lt;/P&gt;
&lt;P&gt;Extracting data performance depends on indexing/partitioning in the database, and potentially the bandwidth from SAS to the database server.&lt;/P&gt;
&lt;P&gt;What is your task generally speaking?&lt;/P&gt;
&lt;P&gt;5 minutes doesn't sound like a lot of time if it should be a daily batch.&lt;/P&gt;
&lt;P&gt;Also, consider put the subsequent processing in the DB to minimize transport of data.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847761#M41821</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-12-05T12:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847766#M41822</link>
      <description>&lt;P&gt;Do you have any code or program options which is different from normal?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 12:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847766#M41822</guid>
      <dc:creator>kuppusamy</dc:creator>
      <dc:date>2022-12-05T12:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847786#M41823</link>
      <description>&lt;P&gt;Rather that pull date from database, take processing to where the data resides.&lt;/P&gt;
&lt;P&gt;You may get some ideas here&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_033/indbug/n1lo1d19ercldkn14vm45k13z3so.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_033/indbug/n1lo1d19ercldkn14vm45k13z3so.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 13:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847786#M41823</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-12-05T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847896#M41824</link>
      <description>&lt;P&gt;Please post the complete log of the SQL step that runs too long.&lt;/P&gt;
&lt;P&gt;Also let us know how many observations you pull, and the observation size.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/847896#M41824</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-05T19:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/848085#M41825</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x oracle datasrc=....  readbuff=10000 bulkload=yes  ;
proc copy in=x out=work memtype=data ;&lt;BR /&gt;select your-table-name ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try READBUFF= option.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 11:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/848085#M41825</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-06T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/848678#M41838</link>
      <description>&lt;P&gt;Run a test converting your query into a count of the rows being selected. If this is no faster than reading the selected data into a SAS dataset then it is an Oracle query performance problem. I've found Oracle hints can be helpful for this. A row count test looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select count(*)
from &amp;lt;My Oracle table&amp;gt;
where &amp;lt;My where clause&amp;gt;
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it is a lot faster than transmitting of the data across your IT network back to SAS (CREATE TABLE) is the bottleneck.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 02:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/848678#M41838</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-09T02:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code Optimization</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/848696#M41839</link>
      <description>&lt;P&gt;READBUFF (as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;shows in his example) is the only option I know about that could affect performance in the data transfer from Oracle.&lt;/P&gt;
&lt;P&gt;BULKOAD does not help here, it helps you when you want to load Oracle tables.&lt;/P&gt;
&lt;P&gt;So again, network bandwidth, and Oracle query performance is the two other areas you can look into.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 10:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Code-Optimization/m-p/848696#M41839</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-12-09T10:08:35Z</dc:date>
    </item>
  </channel>
</rss>

