<?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: improving running time of the program. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701437#M214804</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp; In spde files i use options&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;BYSORT=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/p0fnq4axu41db1n115j4om9efx41.htm#n1gdd8v23xcvv8n0zpbplw8mr1vf" target="_blank"&gt;YES&lt;/A&gt;&amp;nbsp; &amp;nbsp;so Ican skip proc sort.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 04:57:22 GMT</pubDate>
    <dc:creator>irena_g</dc:creator>
    <dc:date>2020-11-25T04:57:22Z</dc:date>
    <item>
      <title>improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701182#M214695</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We work with big files. They are more 8000000 rows and more than 2000 columns. Our program runs for 4 hours. We want to improve the running time of the program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I changed all merge section to sql code. It’s don’t help me very much. My program&amp;nbsp; now runs for&amp;nbsp; 3:45 hours.&lt;/LI&gt;&lt;LI&gt;I tried using simple data set statements and used SPDE files and indexes. I removed all proc sort statements--now my program runs for&amp;nbsp; 3:25 hours.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be you have&amp;nbsp;another idea how can I improve the running time of the program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Irena&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 11:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701182#M214695</guid>
      <dc:creator>irena_g</dc:creator>
      <dc:date>2020-11-24T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701183#M214696</link>
      <description>&lt;P&gt;This is a huge topic and depends largely on what your code does.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post your code and let ud have a look.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 11:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701183#M214696</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-24T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701185#M214698</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;Unfortunately, I can't to post the program code. The program consists mainly of the merges.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 11:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701185#M214698</guid>
      <dc:creator>irena_g</dc:creator>
      <dc:date>2020-11-24T11:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701186#M214699</link>
      <description>&lt;P&gt;Do you sort the data prior to merging?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 11:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701186#M214699</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-24T11:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701189#M214700</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/268287"&gt;@irena_g&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;Unfortunately, I can't to post the program code. The program consists mainly of the merges.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Without seeing the code and the log it is hardly possible to suggest something improving the runtime.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;When calling proc sort and the data is already sorted, using the option "presorted" will reduce the time proc sort needs.&lt;/LI&gt;
&lt;LI&gt;Maybe the high running time is caused by the hardware involved. Can you post some details on the hardware you have?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 24 Nov 2020 11:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701189#M214700</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-11-24T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701224#M214703</link>
      <description>&lt;P&gt;As others have noted, "can't see the program" + "can't see the data" = "can only guess"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So here's my guess.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to fix the data.&amp;nbsp; For example, it takes longer to process 200 characters than it takes to process one character.&amp;nbsp; So&amp;nbsp; if (for example) GENDER should be "M" or "F" but it is actually defined as 200 characters long, you need to fix that first.&amp;nbsp; There's a lot of work involved to do this, starting with PROC CONTENTS to see the actual lengths being used.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 14:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701224#M214703</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-11-24T14:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701244#M214716</link>
      <description>&lt;P&gt;TAGSORT can reduce the temporary disk space used for sorts on large datasets improving performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you think that your variable names give away too much information ("can't share code") then your names contain information that belongs in variables and not in the names and may be the reason you have too many variables. Plus processing information in names means that you likely have other data structure issues that negatively impact performance.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701244#M214716</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-24T15:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: improving running time of the program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701437#M214804</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp; In spde files i use options&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;BYSORT=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/p0fnq4axu41db1n115j4om9efx41.htm#n1gdd8v23xcvv8n0zpbplw8mr1vf" target="_blank"&gt;YES&lt;/A&gt;&amp;nbsp; &amp;nbsp;so Ican skip proc sort.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 04:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/improving-running-time-of-the-program/m-p/701437#M214804</guid>
      <dc:creator>irena_g</dc:creator>
      <dc:date>2020-11-25T04:57:22Z</dc:date>
    </item>
  </channel>
</rss>

