<?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 Insufficient Memory Issue? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300600#M63498</link>
    <description>&lt;P&gt;When I try to sum the data I get an error (below).&amp;nbsp; I’ve tried closing the EGuide session, tried logging off and on, and just now tried a Select Distinct of only the 3 columns that are just text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a big, but not crazy huge table 14MM rows, only 9 columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;53         SELECT PARENT_NM, COUNT(DISTINCT PID_KEY) FORMAT=COMMA11. AS IDS, SUM(DOLLARS) FORMAT=DOLLAR17. AS DOLLARS
54         FROM DAS.FINAL
55         GROUP BY PARENT_NM
56         ;
ERROR: File WORK.'SASTMP-000000136'n.INDEX is damaged. I/O processing did not complete.
ERROR: :Unable to insert into temporary index while processing summary functions.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It’s occurring with any of the datasets that stem from the transaction table I’m bringing back.&amp;nbsp; I did run this within EG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original log file I did not save, other than copying the error above.&amp;nbsp; It takes hours for the server to run its course and return the error.&amp;nbsp;Wondering if there is corrupt data somewhere in that field.'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DEFINITELY IT’S THE GROUP BY PARENT_NM that is causing issue. Because when I remove '&lt;SPAN&gt;GROUP BY PARENT_NM&lt;/SPAN&gt;' , code is running fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually don’t have access to run in UNIX, so I can't test it there. Appreciate if someone guide me to overcome this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2016 10:42:52 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2016-09-25T10:42:52Z</dc:date>
    <item>
      <title>Insufficient Memory Issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300600#M63498</link>
      <description>&lt;P&gt;When I try to sum the data I get an error (below).&amp;nbsp; I’ve tried closing the EGuide session, tried logging off and on, and just now tried a Select Distinct of only the 3 columns that are just text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a big, but not crazy huge table 14MM rows, only 9 columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;53         SELECT PARENT_NM, COUNT(DISTINCT PID_KEY) FORMAT=COMMA11. AS IDS, SUM(DOLLARS) FORMAT=DOLLAR17. AS DOLLARS
54         FROM DAS.FINAL
55         GROUP BY PARENT_NM
56         ;
ERROR: File WORK.'SASTMP-000000136'n.INDEX is damaged. I/O processing did not complete.
ERROR: :Unable to insert into temporary index while processing summary functions.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It’s occurring with any of the datasets that stem from the transaction table I’m bringing back.&amp;nbsp; I did run this within EG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original log file I did not save, other than copying the error above.&amp;nbsp; It takes hours for the server to run its course and return the error.&amp;nbsp;Wondering if there is corrupt data somewhere in that field.'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DEFINITELY IT’S THE GROUP BY PARENT_NM that is causing issue. Because when I remove '&lt;SPAN&gt;GROUP BY PARENT_NM&lt;/SPAN&gt;' , code is running fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually don’t have access to run in UNIX, so I can't test it there. Appreciate if someone guide me to overcome this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 10:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300600#M63498</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-09-25T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory Issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300602#M63499</link>
      <description>&lt;P&gt;Try using a data step or Proc to do your calculation instead?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd also check with your IT group, the issue may not be your computer. I'm assuming that EG is actually passing the code to a server and not running locally m&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 10:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300602#M63499</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-25T10:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory Issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300609#M63502</link>
      <description>&lt;P&gt;SAS EG is the client. Your code executes on the Server side (=Unix for you).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I strongly assume that the error you encounter is caused by insufficient disc space (not memory) for WORK or UTILLOC.&lt;/P&gt;
&lt;P&gt;Contact the SAS Admin at your site so these disk areas get either cleaned up or get additional space allocated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 12:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300609#M63502</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2016-09-25T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory Issue?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300623#M63512</link>
      <description>&lt;P&gt;Run (or have run) the cleanwork utility on the work location.&lt;/P&gt;
&lt;P&gt;If that doesn't fix it, optimize the code by using a proc sort and a data step (SQL creates an overly large utility file).&lt;/P&gt;
&lt;P&gt;If that doesn't work, you need more disk space in work.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 16:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Insufficient-Memory-Issue/m-p/300623#M63512</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-09-25T16:13:55Z</dc:date>
    </item>
  </channel>
</rss>

