<?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 ERROR: Sort execution failure in PROC SQL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434776#M68917</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS and have been running my code up till now just fine. Tonight I got an error message saying (below) when doing a proc sql. I have looked at previous answers to questions on this topic and have troubleshooted them using that concept but it still doesn't work. Do you have any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The query requires remerging summary statistics back with the original data.&lt;BR /&gt;ERROR: Sort execution failure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2018 07:33:46 GMT</pubDate>
    <dc:creator>dlazer1</dc:creator>
    <dc:date>2018-02-07T07:33:46Z</dc:date>
    <item>
      <title>ERROR: Sort execution failure in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434776#M68917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS and have been running my code up till now just fine. Tonight I got an error message saying (below) when doing a proc sql. I have looked at previous answers to questions on this topic and have troubleshooted them using that concept but it still doesn't work. Do you have any other suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The query requires remerging summary statistics back with the original data.&lt;BR /&gt;ERROR: Sort execution failure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 07:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434776#M68917</guid>
      <dc:creator>dlazer1</dc:creator>
      <dc:date>2018-02-07T07:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Sort execution failure in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434777#M68918</link>
      <description>&lt;P&gt;Have you tried using Google to find a solution?&lt;/P&gt;
&lt;P&gt;Search-query: site:sas.com proc sql&amp;nbsp; Sort execution failure&lt;/P&gt;
&lt;P&gt;First link: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/td-p/262581" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/td-p/262581&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 07:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434777#M68918</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-02-07T07:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Sort execution failure in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434808#M68920</link>
      <description>&lt;P&gt;Looks like you ran out of space because of data growth. Optimize your SQL code, or replace it with data/sort steps, if such is possible,&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/434808#M68920</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-07T10:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Sort execution failure in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/510328#M72985</link>
      <description>&lt;P&gt;This is an old thread but I wanted to add my recent experience with the "Sort Execution Failure" error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First this&amp;nbsp;troubleshooting page should be read;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/39/705.html" target="_blank"&gt;http://support.sas.com/kb/39/705.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my recent experience with this error the problem&amp;nbsp;appeared to be&amp;nbsp;that there was insufficient disk space/storage, although there was ample disk available for the failing process (200gb).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After trying various remedies we eventually identified that there was a user disk quota (of 75gb). Our job was executing as part of a batch of jobs on Unix, all being executed as the same user ('sasbatch'). The user disk quota is total usage for that user and so even though at a high level there was 200gb available, our user had reached it's&amp;nbsp;quota and so the job was failing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After increasing the users disk quota all of our batch jobs were able to complete successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps anyone who may come across the same situation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 06:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/510328#M72985</guid>
      <dc:creator>Seb_Royer</dc:creator>
      <dc:date>2018-11-05T06:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Sort execution failure in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/510336#M72987</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2556"&gt;@Seb_Royer&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This is an old thread but I wanted to add my recent experience with the "Sort Execution Failure" error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First this&amp;nbsp;troubleshooting page should be read;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/39/705.html" target="_blank"&gt;http://support.sas.com/kb/39/705.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my recent experience with this error the problem&amp;nbsp;appeared to be&amp;nbsp;that there was insufficient disk space/storage, although there was ample disk available for the failing process (200gb).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After trying various remedies we eventually identified that there was a user disk quota (of 75gb). Our job was executing as part of a batch of jobs on Unix, all being executed as the same user ('sasbatch'). The user disk quota is total usage for that user and so even though at a high level there was 200gb available, our user had reached it's&amp;nbsp;quota and so the job was failing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After increasing the users disk quota all of our batch jobs were able to complete successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps anyone who may come across the same situation.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'd even go so far as not having any disk quota for userid's used to run batch jobs from the scheduler.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/510336#M72987</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-05T07:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Sort execution failure in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/510423#M72988</link>
      <description>&lt;P&gt;If I were a sysadmin, I'm not sure I'd want no quota on userid BATCH.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it shouldn't be too hard for a sysadmin to set up a number of userid's (BATCH1, BATCH2, ...) each with a quota that would not be reduced by concurrent disk usage by other&amp;nbsp; userid's.&amp;nbsp; Let the op system dynamically allocated batch userid's to batch submissions, so users don't have to choose.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, you'd still be at risk of multiple simultaneous demands for disk space exceeding overall disk availability.&amp;nbsp; But at least you'd avoid the synthetic disk shortage created by sharing a quota well short of actual disk space.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Sort-execution-failure-in-PROC-SQL/m-p/510423#M72988</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-11-05T14:44:50Z</dc:date>
    </item>
  </channel>
</rss>

