<?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: Variable Run Times for Scheduled SAS Job (SAS EG) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883349#M43257</link>
    <description>&lt;P&gt;If everything is running slower then that suggests that there is increased load on the the SAS Compute server which is impacting your job. I do have to ask the question - does it really matter that it takes 30 minutes on some days versus a few minutes on others? You could spend a lot of time trying to tune your slow steps, but at the end of the day if SAS is heavily loaded your job is still going to run slow. In my experience efficiently-written code tends to be less impacted by heavy server loading.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 20:03:59 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-07-03T20:03:59Z</dc:date>
    <item>
      <title>Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/882827#M43240</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a fairly substantial program (in terms of length, size of data) that I've scheduled to run daily at 8am. My company uses SAS Enterprise Guide. A few months ago, the run time started to be extremely variable, even without any changes to the code. My company added additional cores about a month ago, but the variation continues. What could be the culprit? It seems like a system limitation, but how do I diagnose/determine that? Is there anything I can do from a code perspective to reduce this variability? We have a couple of "problem queries" aka ones that take long to run, either due to complexity or size. These queries used to run regularly in 2-3 minutes. So, not fast, but fast enough for our purposes. Now they can take anywhere from 3 minutes to 30 minutes to run. I am an analyst with limited IT background - wondering what options I have to explore? Thanks in advance for any guidance!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 17:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/882827#M43240</guid>
      <dc:creator>calger</dc:creator>
      <dc:date>2023-06-28T17:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/882866#M43241</link>
      <description>&lt;P&gt;First you should review your SAS log. Compare a normal run time log with a slow one. What steps are taking longer than they used to? If all steps are running slower, then a likely culprit could be the load from other jobs on the SAS server. Talk to your SAS administrator regarding SAS server performance when your job is running. They may be able to provide insights that explain the variation in run times.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 21:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/882866#M43241</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-28T21:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883252#M43252</link>
      <description>Thanks. Everything runs slower, but most steps take seconds or fractions of seconds to run, so even though they run more slowly, they still run quickly. The longest queries obviously take much, much longer to run. Would breaking them down into simpler queries solve the issue?</description>
      <pubDate>Sun, 02 Jul 2023 15:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883252#M43252</guid>
      <dc:creator>calger</dc:creator>
      <dc:date>2023-07-02T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883258#M43253</link>
      <description>&lt;P&gt;Complicated, multi-table joins in SQL can develop into massive time-wasters. If these joins are in fact lookups into tables with unique keys, consider doing the lookups in a DATA step with hash objects.&lt;/P&gt;
&lt;P&gt;For more detailed help, we would need to see the log of one such long-running step, including information about the involved tables (key relationships, variables).&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 16:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883258#M43253</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-02T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883330#M43256</link>
      <description>&lt;P&gt;I am attaching the problem query below &amp;amp; some of the log output. I've changed some of the variable and table names. This is the worst runtime I've ever seen for it, but then the next day it ran in ~7 minutes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A unique identifier for call_data &amp;amp; problem_table would be employee_date_key + call_skill, but the employee data won't have call_skill, it only has employee_date_key (this is unique for that table, it will only have 1 row per employee_date_key).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE gridwork.problem_table as&lt;BR /&gt;SELECT DISTINCT&lt;BR /&gt;t1.employee_date_key&lt;BR /&gt;, t1.EMP_NNUMBER&lt;BR /&gt;, t1.department&lt;BR /&gt;, t1.job_name&lt;BR /&gt;, t1.targets_key&lt;BR /&gt;, t1.employee_tenure&lt;BR /&gt;, t2.call_date&lt;BR /&gt;, intnx('month',t2.call_date,0,"BEGINNING") as begofmonth&lt;BR /&gt;, t2.call_skill&lt;BR /&gt;, t2.Skill_JoinFmtCSO&lt;BR /&gt;&amp;nbsp;, t2.TRANSFER_LOCATION&lt;BR /&gt;, . as RESOLVED_NUM&lt;BR /&gt;, sum(t2.ACD_CALL_COUNT)&lt;BR /&gt;, sum(case when exc.exclude_AHT_YN = 'Y' then . else t2.REP_TALK_SEC end) as TALK_TIME_SEC&lt;BR /&gt;, sum(case when exc.exclude_AHT_YN = 'Y' then .&lt;BR /&gt;&amp;nbsp;when t2.ACW_SEC &amp;gt; 3599 then 3600 + t2.REP_TALK_SEC&lt;BR /&gt;else t2.REP_TALK_SEC + t2.ACW_SEC end) as KPI_NUM&lt;BR /&gt;, sum(case when exc.exclude_aht_yn = 'Y'&lt;BR /&gt;&amp;nbsp;or t2.ACD_CALL_COUNT = 0 then .&lt;BR /&gt;&amp;nbsp;else t2.ACD_CALL_COUNT end) as KPI_DENOM&lt;BR /&gt;, sum(case when exc.exclude_acw_yn = 'Y' then .&lt;BR /&gt;when t2.ACW_SEC &amp;gt; 3599 then 3600&lt;BR /&gt;&amp;nbsp;else t2.ACW_SEC end) as KPI2_NUM&lt;BR /&gt;, sum(case when t2.ACD_CALL_COUNT = 0&lt;BR /&gt;&amp;nbsp;or exc.exclude_acw_yn = 'Y' then .&lt;BR /&gt;else t2.ACD_CALL_COUNT end) as KPI2_DENOM&lt;BR /&gt;, sum(t2.TRANSFER_CALL_COUNT1) as TRANSFER_NUM&lt;BR /&gt;, sum(t2.ACD_CALL_COUNT) as TRANSFER_DENOM&lt;BR /&gt;, sum(t2.LEAD_COUNT)&lt;BR /&gt;, sum(t2.ACCEPTABLE_CALL_COUNT)&lt;BR /&gt;, count(t2.ACCEPTABLE_CALL_COUNT)&lt;BR /&gt;, sum(t2.ANSWER_TIME_SEC) as KPI3_NUM&lt;BR /&gt;, sum(t2.LEADS_ELIG_COUNT)&lt;BR /&gt;, t1.Blended_tenure_bucket&lt;BR /&gt;, t1.Blended_StartDate&lt;BR /&gt;from CUBE.employee_data t1&lt;BR /&gt;&amp;nbsp;join GRIDWORK.call_data t2&lt;BR /&gt;on (t1.EMP_NNUMBER = t2.EMP_PIN&lt;BR /&gt;and t1.CLNDR_DT = t2.call_date&lt;BR /&gt;&amp;nbsp;and t1.l1_status = 'Active')&lt;BR /&gt;left join dat.bl_exceptions exc&lt;BR /&gt;&amp;nbsp;on (t1.CLNDR_DT between exc.FROM_DATE and exc.TO_DATE&lt;BR /&gt;and t1.department = exc.TEAM&lt;BR /&gt;and (exc.exclude_aht_yn = 'Y' or exc.exclude_acw_yn = 'Y'))&lt;BR /&gt;&amp;nbsp;where t1.CLNDR_DT &amp;gt;= /*&amp;amp;begofCurrentYear.*/ mdy(1,1,&amp;amp;CurrentYear)&lt;BR /&gt;2023-06-29T08:06:07,943 - SYMBOLGEN: Macro variable CURRENTYEAR resolves to 2023&lt;BR /&gt;&amp;nbsp;and t1.CHANNEL = 'Business Lines'&lt;BR /&gt;group by 1,2,3,4,5,6,7,8,9,10,11&lt;BR /&gt;;&lt;BR /&gt;2023-06-29T08:06:08,364 - Libref=CUBE Engine=V9 Member=employee_data MemberType=DATA Openmode=INPUT Path={file path}&lt;BR /&gt;2023-06-29T08:06:08,372 - Libref=GRIDWORK Engine=V9 Member=call_data MemberType=DATA Openmode=INPUT Path={file path}&lt;BR /&gt;2023-06-29T08:06:08,676 - Libref=DAT Engine=V9 Member=BL_EXCEPTIONS MemberType=DATA Openmode=INPUT Path={path}&lt;BR /&gt;2023-06-29T08:06:08,678 - NOTE: The query requires remerging summary statistics back with the original data.&lt;BR /&gt;2023-06-29T08:06:08,680 - Libref=GRIDWORK Engine=V9 Member=problem_table MemberType=DATA Openmode=OUTPUT Path={path}&lt;BR /&gt;2023-06-29T08:06:08,688 - NOTE: SAS threaded sort was used.&lt;BR /&gt;2023-06-29T08:48:32,032 - NOTE: Compressing data set GRIDWORK.problem_table decreased size by 96.89 percent.&lt;BR /&gt;2023-06-29T08:48:32,090 - Compressed is 134 pages; un-compressed would require 4305 pages.&lt;BR /&gt;2023-06-29T08:48:32,122 - NOTE: Table GRIDWORK.problem_table created, with 43042 rows and 27 columns.&lt;BR /&gt;2023-06-29T08:48:32,122 -&lt;BR /&gt;2023-06-29T08:48:35,166 - 1593 +QUIT;&lt;BR /&gt;2023-06-29T08:48:35,196 - NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;2023-06-29T08:48:35,196 - real time 42:27.25&lt;BR /&gt;2023-06-29T08:48:35,196 - user cpu time 56.07 seconds&lt;BR /&gt;2023-06-29T08:48:35,196 - system cpu time 2:33.86&lt;BR /&gt;2023-06-29T08:48:35,196 - memory 6533820.03k&lt;BR /&gt;2023-06-29T08:48:35,196 - OS Memory 6555652.00k&lt;BR /&gt;2023-06-29T08:48:35,196 - Timestamp 06/29/2023 08:48:35 AM&lt;BR /&gt;2023-06-29T08:48:35,196 - Step Count 20 Switch Count 0&lt;BR /&gt;2023-06-29T08:48:35,196 - Page Faults 0&lt;BR /&gt;2023-06-29T08:48:35,196 - Page Reclaims 3245409&lt;BR /&gt;2023-06-29T08:48:35,196 - Page Swaps 0&lt;BR /&gt;2023-06-29T08:48:35,196 - Voluntary Context Switches 107048&lt;BR /&gt;2023-06-29T08:48:35,196 - Involuntary Context Switches 37457&lt;BR /&gt;2023-06-29T08:48:35,196 - Block Input Operations 0&lt;BR /&gt;2023-06-29T08:48:35,196 - Block Output Operations 0&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 15:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883330#M43256</guid>
      <dc:creator>calger</dc:creator>
      <dc:date>2023-07-03T15:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883349#M43257</link>
      <description>&lt;P&gt;If everything is running slower then that suggests that there is increased load on the the SAS Compute server which is impacting your job. I do have to ask the question - does it really matter that it takes 30 minutes on some days versus a few minutes on others? You could spend a lot of time trying to tune your slow steps, but at the end of the day if SAS is heavily loaded your job is still going to run slow. In my experience efficiently-written code tends to be less impacted by heavy server loading.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 20:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883349#M43257</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-07-03T20:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable Run Times for Scheduled SAS Job (SAS EG)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883639#M43271</link>
      <description>Thank you very much! We have forwarded our issue to an IT team.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jul 2023 22:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-Run-Times-for-Scheduled-SAS-Job-SAS-EG/m-p/883639#M43271</guid>
      <dc:creator>calger</dc:creator>
      <dc:date>2023-07-05T22:22:36Z</dc:date>
    </item>
  </channel>
</rss>

