<?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, but the obvious solutions aren't working in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677429#M32521</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342078"&gt;@hsmyth&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing usable code and input data for testing. I got the same error message on my workstation with 64 GB RAM (part of which is used for a RAM disk, though) and &lt;FONT face="courier new,courier"&gt;-MEMSIZE MAX&lt;/FONT&gt;. I also modified the &lt;A href="https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=p16x2g68em0o5jn1quuxtat2scdf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;REALMEMSIZE&lt;/A&gt;&amp;nbsp;system option to no avail. The error occurs even with &lt;FONT face="courier new,courier"&gt;NBOOT=50&lt;/FONT&gt; applied to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Simdata.f163&lt;STRONG&gt;(obs=4)&lt;/STRONG&gt;&lt;/FONT&gt;. I'm not familiar with PROC CAUSALMED, but I can't imagine how 50 bootstrap samples from 4 observations (of length 144 bytes) could ever occupy anything near 2 gigabytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To try another example I added a similar BOOTSTRAP statement with NBOOT=50 to (simplified versions of)&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_causalmed_examples03.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Example 35.3&lt;/A&gt; from the documentation. Then the error messages ranged from "Insufficient memory" over "Floating Point Overflow" to&amp;nbsp;"Write Access Violation CAUSALMED" and "An exception has been encountered. Please contact technical support ...".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example in&amp;nbsp;&lt;A href="https://support.sas.com/kb/59/081.html" target="_blank" rel="noopener"&gt;Usage Note 59081: Mediation analysis&lt;/A&gt; (see &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SAS-housing-data/m-p/523134#M59760" target="_blank" rel="noopener"&gt;Re: SAS housing data&lt;/A&gt; for the data), however, worked on my computer -- until I changed the default BOOTCI(BC) in the BOOTSTRAP statement to&amp;nbsp;BOOTCI(NORMAL). This change caused "An exception has been encountered. Please contact technical support ..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this is what I would do next: &lt;A href="https://support.sas.com/en/technical-support/contact-sas.html" target="_blank" rel="noopener"&gt;contact SAS technical support&lt;/A&gt;. There is likely a bug in this new procedure&amp;nbsp;(which was introduced with SAS/STAT 14.3).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 09:26:05 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-08-18T09:26:05Z</dc:date>
    <item>
      <title>Insufficient memory error, but the obvious solutions aren't working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677381#M32518</link>
      <description>&lt;P&gt;Using SAS Software 9.4 (TS1M5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;X64_10HOME platform.&lt;/P&gt;&lt;P&gt;SAS/STAT 14.3&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Program file and data are attached&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yesterday, I ran a program using the default 2GB Memsize option. Today, when I return to the program I am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Insufficient memory to complete the CAUSALMED procedure.&amp;nbsp;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of the program that worked ysterday, but not today.&amp;nbsp; I can narrow the problem down to the bootstrap command. The program works if I leave that part out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options fullstimer;&lt;BR /&gt;ods results = OFF;&lt;BR /&gt;ods listing close;&lt;BR /&gt;ods html close;&lt;BR /&gt;ods output EffectDecomp=EffectDecomp EffectSummary=EffectSummary MediatorEstimates=MediatorEstimates OutcomeEstimates=OutcomeEstimates PercentDecomp=PercentDecomp;&lt;BR /&gt;PROC CAUSALMED DATA=Simdata.f163 pALL;&lt;BR /&gt;BY rep;&lt;BR /&gt;CLASS X/DESCENDING;&lt;BR /&gt;MODEL Y = X|M;&lt;BR /&gt;MEDIATOR M = X;&lt;BR /&gt;BOOTSTRAP BOOTCI(NORMAL) NBOOT=1000 SEED=100;&lt;BR /&gt;quit;&lt;BR /&gt;ods output close;&lt;BR /&gt;ods listing;&lt;BR /&gt;ods html;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have spent all day reading through forums and documentation, I have changed MEMSIZE option, and I have confirmed that I have over 7GB memory available. (Remember, this worked yesterday when the MEMSIZE was at the default.&amp;nbsp; The FULLSTIMER option suggests that only 2200 k is being used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the full log&lt;/P&gt;&lt;P&gt;4 options fullstimer;&lt;BR /&gt;5 ods results = OFF;&lt;BR /&gt;6 ods listing close;&lt;BR /&gt;7 ods html close;&lt;BR /&gt;8 ods output EffectDecomp=EffectDecomp EffectSummary=EffectSummary&lt;BR /&gt;8 ! MediatorEstimates=MediatorEstimates OutcomeEstimates=OutcomeEstimates PercentDecomp=PercentDecomp&lt;BR /&gt;8 ! ;&lt;BR /&gt;9 PROC CAUSALMED DATA=Simdata.f163 pALL;&lt;BR /&gt;10 BY rep;&lt;BR /&gt;11 CLASS X/DESCENDING;&lt;BR /&gt;12 MODEL Y = X|M;&lt;BR /&gt;13 MEDIATOR M = X;&lt;BR /&gt;14 BOOTSTRAP BOOTCI(NORMAL) NBOOT=1000 SEED=100;&lt;BR /&gt;15 quit;&lt;/P&gt;&lt;P&gt;NOTE: Resampling for bootstrap replicates 1 to 100.&lt;BR /&gt;ERROR: Insufficient memory to complete the CAUSALMED procedure.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: PROCEDURE CAUSALMED used (Total process time):&lt;BR /&gt;real time 0.05 seconds&lt;BR /&gt;user cpu time 0.03 seconds&lt;BR /&gt;system cpu time 0.06 seconds&lt;BR /&gt;memory 2201.46k&lt;BR /&gt;OS Memory 18932.00k&lt;BR /&gt;Timestamp 08/17/2020 08:02:17 PM&lt;BR /&gt;Step Count 1 Switch Count 0&lt;/P&gt;&lt;P&gt;16 ods output close;&lt;BR /&gt;17 ods listing;&lt;BR /&gt;18 ods html;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;19 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have cleared the work folder, checked my computer memory, I have updated the configuration file, deleted temporary files from C:\User..., I have tried all the things that seem obvious to do given the error message. Nothing worked.&lt;/P&gt;&lt;P&gt;I remoted into a different work computer (which would have the default MEMSIZE) and ran the program with the bootstrap with no problem. But my home desktop and laptop give me this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas about what is going on?&amp;nbsp; It seems like something is clogged up in the machine, but I don't know where else to look.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 03:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677381#M32518</guid>
      <dc:creator>hsmyth</dc:creator>
      <dc:date>2020-08-18T03:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error, but the obvious solutions aren't working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677429#M32521</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342078"&gt;@hsmyth&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing usable code and input data for testing. I got the same error message on my workstation with 64 GB RAM (part of which is used for a RAM disk, though) and &lt;FONT face="courier new,courier"&gt;-MEMSIZE MAX&lt;/FONT&gt;. I also modified the &lt;A href="https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=p16x2g68em0o5jn1quuxtat2scdf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;REALMEMSIZE&lt;/A&gt;&amp;nbsp;system option to no avail. The error occurs even with &lt;FONT face="courier new,courier"&gt;NBOOT=50&lt;/FONT&gt; applied to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Simdata.f163&lt;STRONG&gt;(obs=4)&lt;/STRONG&gt;&lt;/FONT&gt;. I'm not familiar with PROC CAUSALMED, but I can't imagine how 50 bootstrap samples from 4 observations (of length 144 bytes) could ever occupy anything near 2 gigabytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To try another example I added a similar BOOTSTRAP statement with NBOOT=50 to (simplified versions of)&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_causalmed_examples03.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Example 35.3&lt;/A&gt; from the documentation. Then the error messages ranged from "Insufficient memory" over "Floating Point Overflow" to&amp;nbsp;"Write Access Violation CAUSALMED" and "An exception has been encountered. Please contact technical support ...".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example in&amp;nbsp;&lt;A href="https://support.sas.com/kb/59/081.html" target="_blank" rel="noopener"&gt;Usage Note 59081: Mediation analysis&lt;/A&gt; (see &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/SAS-housing-data/m-p/523134#M59760" target="_blank" rel="noopener"&gt;Re: SAS housing data&lt;/A&gt; for the data), however, worked on my computer -- until I changed the default BOOTCI(BC) in the BOOTSTRAP statement to&amp;nbsp;BOOTCI(NORMAL). This change caused "An exception has been encountered. Please contact technical support ..."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, this is what I would do next: &lt;A href="https://support.sas.com/en/technical-support/contact-sas.html" target="_blank" rel="noopener"&gt;contact SAS technical support&lt;/A&gt;. There is likely a bug in this new procedure&amp;nbsp;(which was introduced with SAS/STAT 14.3).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 09:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677429#M32521</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-08-18T09:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error, but the obvious solutions aren't working</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677689#M32555</link>
      <description>Thank you so much for taking the time to look at this. I will check in with the support team and see what might be going on.</description>
      <pubDate>Wed, 19 Aug 2020 03:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-but-the-obvious-solutions-aren-t/m-p/677689#M32555</guid>
      <dc:creator>hsmyth</dc:creator>
      <dc:date>2020-08-19T03:26:06Z</dc:date>
    </item>
  </channel>
</rss>

