<?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: ERROR: Memory Shortage while running proc surveymeans in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378778#M65537</link>
    <description>&lt;P&gt;I have attempted to but I'm not sure if I am doing it properly. Any advice on how to increase memsize and realmemsize would be great.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 19:21:55 GMT</pubDate>
    <dc:creator>RMC12</dc:creator>
    <dc:date>2017-07-24T19:21:55Z</dc:date>
    <item>
      <title>ERROR: Memory Shortage while running proc surveymeans</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378771#M65535</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run proc surveymeans on a very large data set (14 million observations), and keep getting the following error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Only one cluster in a stratum for variable(s) ReadmitCHG. The estimate of variance for ReadmitCHG will omit this stratum.&lt;BR /&gt;ERROR: PROC SURVEYMEANS was terminated prematurely due to a memory shortage while computing quantiles. Increasing MEMSIZE and/or REALMEMSIZE may&lt;BR /&gt;allow normal processing to complete.&lt;BR /&gt;NOTE: Processing on disk occurred during summarization. Peak disk usage was approximately 62 Mbytes. Adjusting MEMSIZE and/or REALMEMSIZE may&lt;BR /&gt;improve performance.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: PROCEDURE SURVEYMEANS used (Total process time):&lt;BR /&gt;real time 1:47.23&lt;BR /&gt;cpu time 1:46.69&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I have been using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveymeans data=index_events missing sumwgt sum mean;&lt;BR /&gt;strata NRD_STRATUM;&lt;BR /&gt;cluster HOSP_NRD;&lt;BR /&gt;weight DISCWT;&lt;BR /&gt;domain IndexEvent IndexEvent*AgeGroup;&lt;BR /&gt;var Readmit TOTCHG ReadmitCHG totalreadmissions;&lt;BR /&gt;ods output domain=domain;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have any advice on fixing the memory issue? I can't seem to figure it out. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 19:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378771#M65535</guid>
      <dc:creator>RMC12</dc:creator>
      <dc:date>2017-07-24T19:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Memory Shortage while running proc surveymeans</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378777#M65536</link>
      <description>&lt;P&gt;Have you tried increasing MEMSIZE and REALMEMSIZE as the error indicates?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 19:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378777#M65536</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-24T19:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Memory Shortage while running proc surveymeans</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378778#M65537</link>
      <description>&lt;P&gt;I have attempted to but I'm not sure if I am doing it properly. Any advice on how to increase memsize and realmemsize would be great.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 19:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378778#M65537</guid>
      <dc:creator>RMC12</dc:creator>
      <dc:date>2017-07-24T19:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Memory Shortage while running proc surveymeans</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378779#M65538</link>
      <description>&lt;P&gt;You have to set it in the Config file or on startup.&lt;/P&gt;
&lt;P&gt;I think there are instructions here that make sense:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/37038194/increasing-sas-memory-memsize" target="_blank"&gt;https://stackoverflow.com/questions/37038194/increasing-sas-memory-memsize&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 19:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378779#M65538</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-24T19:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Memory Shortage while running proc surveymeans</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378899#M65550</link>
      <description>&lt;P&gt;I's not mentioned in the link but you can set memsize and realmemsize to the parameter MAX which will means SAS will use all the memory it can get - whether that's a good idea depends on your environment and how you're using SAS....&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 08:27:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Memory-Shortage-while-running-proc-surveymeans/m-p/378899#M65550</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-07-25T08:27:21Z</dc:date>
    </item>
  </channel>
</rss>

