<?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: Insufficient memory error in proc sort in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314415#M61555</link>
    <description>&lt;PRE&gt;

proc sort .......  sortsize=3G  tagsort ;
&lt;/PRE&gt;</description>
    <pubDate>Sat, 26 Nov 2016 04:20:05 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-11-26T04:20:05Z</dc:date>
    <item>
      <title>Insufficient memory error in proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314333#M61551</link>
      <description>&lt;P&gt;My data is stored in Oracle table MY_DATA. This table contains only 2 rows with 7 columns. But when I execute step:&lt;/P&gt;
&lt;PRE class="lang-sql prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="kwd"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; sort data&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;oraclelib&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;MY_DATA nodupkey out&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SORTED_DATA&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="kwd"&gt;by&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; client_number&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
run&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the following error appears:&lt;/P&gt;
&lt;PRE class="lang-sql prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt; ERROR&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; The SAS System stopped processing this step because &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;of&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; insufficient memory&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If I comment &lt;CODE&gt;nodupkey&lt;/CODE&gt; option then error disappears. If I copy dataset in work library and execute proc sort on it then everything is OK too.&lt;/P&gt;
&lt;P&gt;My memory options:&lt;/P&gt;
&lt;PRE class="lang-sql prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;SORTSIZE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1073741824&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
SUMSIZE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
MAXMEMQUERY&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;268435456&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
LOADMEMSIZE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;    
MEMSIZE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;31565617920&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;
REALMEMSIZE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What can be the root of the problem and how can I fix it?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 16:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314333#M61551</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2016-11-25T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error in proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314365#M61552</link>
      <description>&lt;P&gt;Try running your program with the FULLSTIMER SAS option to report on how much memory SAS is using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also your LIBREF&amp;nbsp;oraclelib is 9 characters long when 8 is the maximum - is this a typo?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect your sort is happening entirely in SAS as you specify the NODUPKEY option. You could always read the data out of Oracle in a DATA step, then sort separately.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 20:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314365#M61552</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-11-25T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error in proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314371#M61553</link>
      <description>&lt;P&gt;Pull the table into a SAS dataset, do a proc contents on it, and then repeat the sort.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2016 21:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314371#M61553</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-25T21:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error in proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314383#M61554</link>
      <description>&lt;P&gt;I suggest you open a track with SAS TechSupport as memory shouldn't really be an issue with Proc Sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing you could check:&lt;/P&gt;
&lt;P&gt;Is the password for your Oracle connection in grace period? Strange things can happen if this is the case (at least this was true for older SAS versions).&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 00:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314383#M61554</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-11-26T00:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error in proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314415#M61555</link>
      <description>&lt;PRE&gt;

proc sort .......  sortsize=3G  tagsort ;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 26 Nov 2016 04:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314415#M61555</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-26T04:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error in proc sort</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314465#M61556</link>
      <description>&lt;P&gt;Thans all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Patrick,&lt;/P&gt;
&lt;P&gt;its a magic but you are absolutely right! My password was in grace period and when I changed it the issue disappeared!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Dmitry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2016 15:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Insufficient-memory-error-in-proc-sort/m-p/314465#M61556</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2016-11-26T15:25:43Z</dc:date>
    </item>
  </channel>
</rss>

