<?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 Code running slower, not executing properly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879050#M347305</link>
    <description>&lt;P&gt;Does the&amp;nbsp; log show you where steps are taking longer? That there are more observations involved?&lt;/P&gt;
&lt;P&gt;Any warnings or notes about data problems in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to describe your environment a bit more. If you are accessing data over a network then you might have bandwidth issues. If pulling data from an external database then you may have performance issues if the providing system is busier than normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when I see "used to run smoothly" then I also ask "has something changed recently?" Check with your SAS admin or IT. All sorts of things have been known to cause issues.&amp;nbsp; Like the time my IT department physically moved my network connection to an unconnected cable and it took three days for them to figure out what happened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 15:43:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-06-02T15:43:39Z</dc:date>
    <item>
      <title>SAS Code running slower, not executing properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879001#M347274</link>
      <description>&lt;P&gt;Hi, I have a SAS code, it used to run smoothly but now it's taking too much time, sometimes the it's not executing at all. I tried to forcefully close that program. What can I do?. Can anyone suggest me with proper steps?.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879001#M347274</guid>
      <dc:creator>Antara_Barman</dc:creator>
      <dc:date>2023-06-02T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code running slower, not executing properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879020#M347289</link>
      <description>Are you using a company installed SAS version or SAS Academics On Demand?&lt;BR /&gt;&lt;BR /&gt;If a private version you need to talk to your SAS administrators. If On Demand, there's limited support but they usually see these messages.</description>
      <pubDate>Fri, 02 Jun 2023 14:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879020#M347289</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-02T14:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code running slower, not executing properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879050#M347305</link>
      <description>&lt;P&gt;Does the&amp;nbsp; log show you where steps are taking longer? That there are more observations involved?&lt;/P&gt;
&lt;P&gt;Any warnings or notes about data problems in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to describe your environment a bit more. If you are accessing data over a network then you might have bandwidth issues. If pulling data from an external database then you may have performance issues if the providing system is busier than normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when I see "used to run smoothly" then I also ask "has something changed recently?" Check with your SAS admin or IT. All sorts of things have been known to cause issues.&amp;nbsp; Like the time my IT department physically moved my network connection to an unconnected cable and it took three days for them to figure out what happened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 15:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879050#M347305</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-02T15:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code running slower, not executing properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879099#M347315</link>
      <description>&lt;P&gt;I agree that something probably changed.&amp;nbsp; &amp;nbsp;While this code is not perfect and is a bit crude, if you have a "suspect" part of your code,&amp;nbsp; you can still used it to estimate clock time for those sections.&amp;nbsp; &amp;nbsp;Place the code in your existing program, with the "suspect" code between the data _null_ and run statements.&amp;nbsp; &amp;nbsp;After running, view the Elasped time value in the log. Repeat as needed, but you should restart SAS each time to clear all caches.&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;/*Here is a program to count elasped time*/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;%let begintime = %sysfunc(time());&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;data _null_;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;STRONG&gt;/*your code here*/&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;%let endtime = %sysfunc(time());&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Data _null_;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Format ElapsedTime time11.2;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;ElapsedTime = &amp;amp;endtime - &amp;amp;begintime;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Put elapsedtime=;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt;Run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 20:36:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879099#M347315</guid>
      <dc:creator>donricardo</dc:creator>
      <dc:date>2023-06-02T20:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code running slower, not executing properly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879114#M347317</link>
      <description>&lt;P&gt;Any time a SAS program does not run as expected, the proper first step is to review your SAS log as already mentioned by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search the SAS log for any errors or warnings. If there are then you need to investigate them and fix them. If there are not and it is just a problem of slow performance then find the slowest steps in your program. Are they slower than normal or not? Do your log observation counts look normal or not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also remember that if you are using a remote SAS server, your program might be running slower because the server is heavily loaded with other users, and there is no issue with your program. To test this out run your program outside of normal business hours. Does that speed it up a lot? Also talk to your SAS adminisitrators for advice.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 23:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-running-slower-not-executing-properly/m-p/879114#M347317</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-02T23:08:47Z</dc:date>
    </item>
  </channel>
</rss>

