<?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 Program execution speed slows after 10,000 iteration in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648520#M194290</link>
    <description>&lt;PRE&gt;Did your clear LIBNAME of odbc after running every sas code ?
libname xxxx clear;

Or Did you disconnect from oralce/odbc ?
proc sql;
connect to .....
......
disconnect from  ......
quit;&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 May 2020 11:03:37 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-05-18T11:03:37Z</dc:date>
    <item>
      <title>SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648498#M194278</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;i have a sas program which generates the pdf password protected file and send across the users.&lt;/P&gt;
&lt;P&gt;users are around 2lakh. when i run sas program around 10000 files generates fast but after 10000 sas progam execution speed degrade upto 60 %.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;program flow.&lt;/P&gt;
&lt;P&gt;1. Read the data from oracle db by using ODBC.&lt;/P&gt;
&lt;P&gt;2. perform sorting on data.&lt;/P&gt;
&lt;P&gt;3. create macro on email and call value during run time in loop.&lt;/P&gt;
&lt;P&gt;4. grenerates pdf, save it temp location and send to user.&lt;/P&gt;
&lt;P&gt;4. clear tmp files.&lt;/P&gt;
&lt;P&gt;5. stop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pls help how to increse execution speed..&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 08:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648498#M194278</guid>
      <dc:creator>ShammiKalsi</dc:creator>
      <dc:date>2020-05-18T08:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648520#M194290</link>
      <description>&lt;PRE&gt;Did your clear LIBNAME of odbc after running every sas code ?
libname xxxx clear;

Or Did you disconnect from oralce/odbc ?
proc sql;
connect to .....
......
disconnect from  ......
quit;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 May 2020 11:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648520#M194290</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-05-18T11:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648551#M194309</link>
      <description>&lt;P&gt;Sounds like you generate an awful lot of data, if you generate a PDF file for each of thousands of users. Perhaps you are running short on disk space, or memory, or both. From your description it sounds like you generate all the temporary files and send them, and when all that is done, you delete the files. You could try deleting each file after sending, that may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it is not obvious that the problem is with your machine. Another possible source of delay may be the email server. Such a thing probably has limited bandwidth, and for starters it will (I guess) store the mails in a buffer for sending. When that buffer runs full, your program slows down, because it has to wait for one file to be sent before it can give another to the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you may have to monitor performance (memory, disk space for temporary files) on your own server to see if there is an identifiable bottleneck. If nothing shows up, you will probably have to talk to the guys in charge of the Email server, to see if there is something they can do (e.g. allocate more disk space for the mail output buffer), and perhaps have them take a look at performance on the email server while your program is running.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 13:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648551#M194309</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-05-18T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648639#M194345</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I do read data from oracle by using ODBC and store it into sas work lib.&lt;BR /&gt;once program executed i closed the session..&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2020 18:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648639#M194345</guid>
      <dc:creator>ShammiKalsi</dc:creator>
      <dc:date>2020-05-18T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648641#M194347</link>
      <description>Thanks for your response..&lt;BR /&gt;&lt;BR /&gt;I have checked there is no issue at memory, disk space and temporary file&lt;BR /&gt;size. i do delete temporary file immediate after sending the mail.&lt;BR /&gt;&lt;BR /&gt;As you suggested problem could be at smtp server side. Let me explain one&lt;BR /&gt;more scenarios here..&lt;BR /&gt;&lt;BR /&gt;I have run two batches 50,000 each. I notice that for both batches when i&lt;BR /&gt;executes with different session it executes fast for 10,000 records. but&lt;BR /&gt;after that  both batches gets slow down..&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2020 18:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648641#M194347</guid>
      <dc:creator>ShammiKalsi</dc:creator>
      <dc:date>2020-05-18T18:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648643#M194349</link>
      <description>&lt;P&gt;Are you running on a server?&amp;nbsp; Perhaps your server has a policy of downgrading your priority when you have been running for too long?&amp;nbsp; So it looks like you are running slower because you are being given a smaller percentage of the system resources.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 18:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648643#M194349</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-05-18T18:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648741#M194394</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/48550"&gt;@ShammiKalsi&lt;/a&gt;&amp;nbsp; - I suggest you check the SAS log of the first one or two slow iterations. What code steps are slow compared to your fast ones? All of them, one of them, several of them? Compare the elapsed time with the CPU time on each step. If it is only one step that is causing the slowness then what is that step doing? Looking at your SAS log in this way will give you clues to what is causing the slowness.&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 02:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648741#M194394</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-05-19T02:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Program execution speed slows after 10,000 iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648754#M194400</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I have run two batches 50,000 each.&amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;Not a solution, but rather a workaround: How about 10 batches of 10,000?&lt;/P&gt;
&lt;P&gt;Also avoid using lackh or crore, few people know what this means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 04:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Program-execution-speed-slows-after-10-000-iteration/m-p/648754#M194400</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-19T04:26:57Z</dc:date>
    </item>
  </channel>
</rss>

