<?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: The SAS System stopped processing this step because of insufficient memory. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333560#M75187</link>
    <description>&lt;P&gt;How do I set a system option?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 20:11:18 GMT</pubDate>
    <dc:creator>starky987</dc:creator>
    <dc:date>2017-02-16T20:11:18Z</dc:date>
    <item>
      <title>ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333552#M75182</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have received the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: PROCEDURE SURVEYREG used (Total process time):&lt;BR /&gt;real time 21.09 seconds&lt;BR /&gt;cpu time 21.15 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To put this into context, I am trying to run proc survey reg clustering errors along two dimensions with ~5 million observations. The macro I am using for this is posted below. I am using SAS 9.4 on Windows 10 Pro. My computer has 32 GB of ram and I believe I have set my memory options appropriately...I right clicked my SAS 9.4 icon, chose properties, and ammended the "target" line to say&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -CONFIG "C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg" &lt;STRONG&gt;-MEMSIZE 30G&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially just adding the part in bold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro I used is listed below and I am trying to include 16 independent variables. I find it hard to imagine that 30GB of memory is not sufficient to complete this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO clus2OLS(yvar, xvars, cluster1, cluster2, dset);&lt;BR /&gt;/* do interesection cluster*/&lt;BR /&gt;proc surveyreg data=&amp;amp;dset; cluster &amp;amp;cluster1 &amp;amp;cluster2; model &amp;amp;yvar= &amp;amp;xvars / covb; ods output CovB = CovI; quit;&lt;BR /&gt;/* Do first cluster */&lt;BR /&gt;proc surveyreg data=&amp;amp;dset; cluster &amp;amp;cluster1; model &amp;amp;yvar= &amp;amp;xvars / covb; ods output CovB = Cov1; quit;&lt;BR /&gt;/* Do second cluster */&lt;BR /&gt;proc surveyreg data=&amp;amp;dset; cluster &amp;amp;cluster2; model &amp;amp;yvar= &amp;amp;xvars / covb; ods output CovB = Cov2 ParameterEstimates = params; quit;&lt;/P&gt;&lt;P&gt;/* Now get the covariances numbers created above. Calc coefs, SEs, t-stats, p-vals using COV = COV1 + COV2 - COVI*/&lt;BR /&gt;proc iml; reset noprint; use params;&lt;BR /&gt;read all var{Parameter} into varnames;&lt;BR /&gt;read all var _all_ into b;&lt;BR /&gt;use Cov1; read all var _num_ into x1;&lt;BR /&gt;use Cov2; read all var _num_ into x2;&lt;BR /&gt;use CovI; read all var _num_ into x3;&lt;/P&gt;&lt;P&gt;cov = x1 + x2 - x3; /* Calculate covariance matrix */&lt;BR /&gt;dfe = b[1,3]; stdb = sqrt(vecdiag(cov)); beta = b[,1]; t = beta/stdb; prob = 1-probf(t#t,1,dfe); /* Calc stats */&lt;/P&gt;&lt;P&gt;print,"Parameter estimates",,varnames beta[format=8.4] stdb[format=8.4] t[format=8.4] prob[format=8.4];&lt;/P&gt;&lt;P&gt;conc = beta || stdb || t || prob;&lt;BR /&gt;cname = {"estimates" "stderror" "tstat" "pvalue"};&lt;BR /&gt;create clus2dstats from conc [ colname=cname ];&lt;BR /&gt;append from conc;&lt;/P&gt;&lt;P&gt;conc = varnames;&lt;BR /&gt;cname = {"varnames"};&lt;BR /&gt;create names from conc [ colname=cname ];&lt;BR /&gt;append from conc;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data clus2dstats; merge names clus2dstats; run;&lt;BR /&gt;%MEND clus2OLS;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 19:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333552#M75182</guid>
      <dc:creator>starky987</dc:creator>
      <dc:date>2017-02-16T19:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333557#M75185</link>
      <description>&lt;P&gt;Try running with system option: &amp;nbsp;&lt;STRONG&gt;-memsize = 0&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;That will enable use memory and virtual memory as much as needed.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333557#M75185</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-16T20:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333558#M75186</link>
      <description>&lt;P&gt;Run your program with the SAS option FULLSTIMER and the SAS log will report how much memory is being used in each step.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333558#M75186</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-02-16T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333560#M75187</link>
      <description>&lt;P&gt;How do I set a system option?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333560#M75187</guid>
      <dc:creator>starky987</dc:creator>
      <dc:date>2017-02-16T20:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333561#M75188</link>
      <description />
      <pubDate>Thu, 16 Feb 2017 20:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333561#M75188</guid>
      <dc:creator>starky987</dc:creator>
      <dc:date>2017-02-16T20:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333565#M75190</link>
      <description>&lt;P&gt;I received the following information from fulltimer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SURVEYREG used (Total process time):&lt;BR /&gt;real time 21.64 seconds&lt;BR /&gt;user cpu time 19.18 seconds&lt;BR /&gt;system cpu time 2.48 seconds&lt;BR /&gt;memory 572712.68k&lt;BR /&gt;OS Memory 652840.00k&lt;BR /&gt;Timestamp 02/16/2017 03:26:20 PM&lt;BR /&gt;Step Count 73 Switch Count 0&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333565#M75190</guid>
      <dc:creator>starky987</dc:creator>
      <dc:date>2017-02-16T20:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333579#M75198</link>
      <description>&lt;P&gt;It doesn't help you solve this with PROC SURVEYREG, but I've had a similar issue in the past and was not able to resolve through the suggested methods. I think they work in the right environment. I'm using a server-delivered SAS and therefore do not have complete control over how much memory (or at least, that's my working theory).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've ended up using a different approach: Create a random number as a variable in that data set, and then do a selection off that. So for instance, create a random number from 0 to 1, then only output when the value is less than 0.05 (5% sample).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333579#M75198</guid>
      <dc:creator>cau83</dc:creator>
      <dc:date>2017-02-16T20:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333587#M75203</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124117"&gt;@starky987&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;How do I set a system option?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Find the &lt;STRONG&gt;-memsize&lt;/STRONG&gt; option in the config file and change the value to zero&lt;/P&gt;
&lt;P&gt;or in your sas execution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; -CONFIG "C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg" &lt;STRONG&gt;-MEMSIZE 0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333587#M75203</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-16T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333588#M75204</link>
      <description>&lt;P&gt;I went ahead and made that change with no luck. I've posted the fullstimer results and I think (not sure though) it is an issue related to the OS memory from that log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not entirely sure, I just know its not possible that this file takes up more than the 32G of ram available.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 21:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333588#M75204</guid>
      <dc:creator>starky987</dc:creator>
      <dc:date>2017-02-16T21:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333730#M75250</link>
      <description>&lt;P&gt;According to the fullstimer log, you had less that 1GB memory in use. Could it be that there is a system setting (like the UNIX ulimit) in place that limits the resources available for your SAS process?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333730#M75250</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-17T10:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333734#M75252</link>
      <description>I am afraid that may be the case Kurt but I don't know why or how to fix it. I am running Windows 10 Pro on a personal machine and am the only user. Any thoughts?</description>
      <pubDate>Fri, 17 Feb 2017 10:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333734#M75252</guid>
      <dc:creator>starky987</dc:creator>
      <dc:date>2017-02-17T10:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The SAS System stopped processing this step because of insufficient memory.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333740#M75256</link>
      <description>&lt;P&gt;I have to admit that my Windows admin skills are virtually nonexistent (compared to my AIX admin skills). Even googling did not provide me with a hint.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 11:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-The-SAS-System-stopped-processing-this-step-because-of/m-p/333740#M75256</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-17T11:16:54Z</dc:date>
    </item>
  </channel>
</rss>

