<?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 Sort Execution Failure in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212389#M52447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 greenplum tables (1.2 million recs,100+ numeric fields) each and then joined together with some small sas tables for lookup and then grouped by id. I have to run this process every month and from time to time I am able to process it successfully. But recently I have been hitting a sort execution failure when processing the join. MEMSIZE is already set to 8G(max) ever since. I have playing around with sortsize 1G, 2G up to 4G and this chunk still fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of disk space of SAS server, we still have around 60gb in space. So I believe this shouldn't be much of an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greatly appreciate any advise on how to address this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 09:00:56 GMT</pubDate>
    <dc:creator>milts</dc:creator>
    <dc:date>2015-07-28T09:00:56Z</dc:date>
    <item>
      <title>Sort Execution Failure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212389#M52447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 greenplum tables (1.2 million recs,100+ numeric fields) each and then joined together with some small sas tables for lookup and then grouped by id. I have to run this process every month and from time to time I am able to process it successfully. But recently I have been hitting a sort execution failure when processing the join. MEMSIZE is already set to 8G(max) ever since. I have playing around with sortsize 1G, 2G up to 4G and this chunk still fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of disk space of SAS server, we still have around 60gb in space. So I believe this shouldn't be much of an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greatly appreciate any advise on how to address this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 09:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212389#M52447</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2015-07-28T09:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Execution Failure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212390#M52448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you join in PROC SQL or with a DATA step? If SQL, try sorting with PROC SORT and doing a DATA step MERGE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 11:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212390#M52448</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-07-28T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Execution Failure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212391#M52449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using tagsort option in the sort statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212391#M52449</guid>
      <dc:creator>MadhuKorni</dc:creator>
      <dc:date>2015-07-28T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Execution Failure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212392#M52450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the sort error message? Sorts can fail for a variety of reasons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 19:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212392#M52450</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-07-28T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Execution Failure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212393#M52451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful, it is not MEMSIZE that matters here, it is REALMEMSIZE: you do not normally want your sort runs to use paging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how these options interact:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11260_Untitled.png" style="width: 450px; height: 226px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" height="234" style="max-width: 1200px; max-height: 900px;" width="469" /&gt;&lt;/P&gt;&lt;P&gt;Figure taken from &lt;A href="http://www.amazon.com/High-Performance-SAS-Coding-Christian-Graffeuille/dp/1514362317" title="http://www.amazon.com/High-Performance-SAS-Coding-Christian-Graffeuille/dp/1514362317"&gt;High-Performance SAS Coding: Polychrome: Christian Graffeuille: 9781514362310: Amazon.com: Books&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 00:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212393#M52451</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-29T00:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sort Execution Failure</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212394#M52452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use the details option to have more insight into what your proc sort is doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 00:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sort-Execution-Failure/m-p/212394#M52452</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-29T00:52:39Z</dc:date>
    </item>
  </channel>
</rss>

