<?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 query taking lot of time to run in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745986#M22322</link>
    <description>&lt;P&gt;To further what KurtBremer was saying, see if you can add these statements to the SAS code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTIONS FULLSTIMER SOURCE SOURCE2 MSGLEVEL=I MPRINT NOTES; &lt;BR /&gt;PROC OPTIONS GROUP=MEMORY; &lt;BR /&gt;PROC OPTIONS GROUP=PERFORMANCE;&lt;BR /&gt;RUN;&lt;BR /&gt;LIBNAME _ALL_ LIST;&lt;BR /&gt;PROC OPTIONS OPTION=WORK;&lt;BR /&gt;PROC OPTIONS OPTION=UTILLOC;&lt;BR /&gt;RUN;&lt;BR /&gt;DATA _NULL_; &lt;BR /&gt;%PUT This job started on &amp;amp;sysdate at &amp;amp;systime; &lt;BR /&gt;RUN;&lt;BR /&gt;OPTIONS SASTRACE=”,,,s” SASTRACELOC=saslog NOSTSUFFIX;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last statement will help with information if the query is going to an external database.&amp;nbsp; It tells you the amount of time spent in the database and the amount of time spent transferring data back to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jun 2021 13:19:17 GMT</pubDate>
    <dc:creator>MargaretC</dc:creator>
    <dc:date>2021-06-05T13:19:17Z</dc:date>
    <item>
      <title>SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745933#M22311</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;There are various users who have complained to us regarding performance issue on SAS servers .&lt;BR /&gt;We checked cpu utilisation at server level and few user ids showed cpu consumption above threshold .&lt;BR /&gt;&lt;BR /&gt;What can we do to control this ?&lt;BR /&gt;Also is there a way we can find why processes are taking more time to run . Like a simple query takes hours .</description>
      <pubDate>Fri, 04 Jun 2021 21:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745933#M22311</guid>
      <dc:creator>Analysts12</dc:creator>
      <dc:date>2021-06-04T21:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745935#M22312</link>
      <description>Are they pulling from columns via index or do you need to add indexes to your data set? Are you limits appropriate for all users? In my experience you'll always have a small subset of power users so you need to give them more resources typically. &lt;BR /&gt;Has your data grown over time and are you quota's accounting for that?&lt;BR /&gt;&lt;BR /&gt;What is slow? Where in the queries are the issues? It could be programming choices, network speed, SAS server quotes/limitations. You need to determine the source of the issue first. &lt;BR /&gt;&lt;BR /&gt;Assuming you've already worked through most of these: &lt;A href="https://support.sas.com/rnd/scalability/papers/solve_perf.pdf" target="_blank"&gt;https://support.sas.com/rnd/scalability/papers/solve_perf.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 04 Jun 2021 22:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745935#M22312</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-04T22:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745944#M22315</link>
      <description>&lt;P&gt;A good starting point would be to post the complete SAS logs of of several queries that run slow. Comparing run times with CPU usage will help. Also what is the performance difference at peak times versus low usage times? If queries run in a reasonable time during periods of low usage it is safe to assume they are running reasonably efficiently and don't necessarily need tuning. If they are still slow then they either need tuning or there are some serious bottlenecks in your SAS infrastructure that need fixing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be monitoring the SAS Environment Manager dashboards as these will help isolate where your SAS performance problems are.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 23:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745944#M22315</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-06-04T23:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745946#M22316</link>
      <description>Yes, SAS environment manager access is something which are discussing for our project .&lt;BR /&gt;&lt;BR /&gt;I need one more suggestion, what all can be good business reason to get environment manager access .&lt;BR /&gt;Because we cannot monitor peak time via server , like monitoring becomes tough</description>
      <pubDate>Fri, 04 Jun 2021 23:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745946#M22316</guid>
      <dc:creator>Analysts12</dc:creator>
      <dc:date>2021-06-04T23:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745967#M22320</link>
      <description>&lt;P&gt;Maxim 2: Read the Log.&lt;/P&gt;
&lt;P&gt;Start with inspecting the log(s) and identify the long-running steps. Then see if other techniques to achieve the same result are more efficient.&lt;/P&gt;
&lt;P&gt;If no logs are available, have the users send you the code so you can test it yourself.&lt;/P&gt;
&lt;P&gt;If code proves to be efficient and no further significant optimization can be done, move the server load to off-business hours by creating batch jobs and running them from the scheduler. Power users who run large scale projects and employ efficient coding techniques may need additional resources (larger MEMSIZE, additional high-speed - SSD! - temporary disk space)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If remote DBMS systems are involved, look to reduce the amount of data transported over the network.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have identified problematic steps and are not sure what to do, run them with FULLSTIMER and show them here.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 07:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745967#M22320</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-05T07:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745986#M22322</link>
      <description>&lt;P&gt;To further what KurtBremer was saying, see if you can add these statements to the SAS code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OPTIONS FULLSTIMER SOURCE SOURCE2 MSGLEVEL=I MPRINT NOTES; &lt;BR /&gt;PROC OPTIONS GROUP=MEMORY; &lt;BR /&gt;PROC OPTIONS GROUP=PERFORMANCE;&lt;BR /&gt;RUN;&lt;BR /&gt;LIBNAME _ALL_ LIST;&lt;BR /&gt;PROC OPTIONS OPTION=WORK;&lt;BR /&gt;PROC OPTIONS OPTION=UTILLOC;&lt;BR /&gt;RUN;&lt;BR /&gt;DATA _NULL_; &lt;BR /&gt;%PUT This job started on &amp;amp;sysdate at &amp;amp;systime; &lt;BR /&gt;RUN;&lt;BR /&gt;OPTIONS SASTRACE=”,,,s” SASTRACELOC=saslog NOSTSUFFIX;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last statement will help with information if the query is going to an external database.&amp;nbsp; It tells you the amount of time spent in the database and the amount of time spent transferring data back to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jun 2021 13:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/745986#M22322</guid>
      <dc:creator>MargaretC</dc:creator>
      <dc:date>2021-06-05T13:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS query taking lot of time to run</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/746376#M22353</link>
      <description>&lt;P&gt;In my view SAS Environment Manager is an essential tool for monitoring SAS 9.x server health and performance. The fact that you can see all important statistics in a few dashboards is a no brainer to me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 20:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SAS-query-taking-lot-of-time-to-run/m-p/746376#M22353</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-06-07T20:48:26Z</dc:date>
    </item>
  </channel>
</rss>

