<?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: Allocating very large arrays in IML 14.1 in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211855#M2192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was released last week!&lt;/P&gt;&lt;P&gt;Here's the What's New for the Analytical products: &lt;A class="active_link" href="https://support.sas.com/documentation/141/index.html" title="https://support.sas.com/documentation/141/index.html"&gt;SAS 14.1 Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And here's highlights: &lt;A href="http://support.sas.com/rnd/app/newreleases.html" title="http://support.sas.com/rnd/app/newreleases.html"&gt;SAS Analytics: Highlights of 14.1, 13.2, 13.1, and 12.1 Releases&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 17:22:13 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2015-07-29T17:22:13Z</dc:date>
    <item>
      <title>Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211853#M2190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Last week I got some help with allocating memory for very large IML arrays. The post got deleted by accident so I thought I'd repost to assist those trying to do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;In short, IML 14.1 supports matrices with &lt;SPAN style="font-size: 12pt;"&gt;up to 2&lt;SUP&gt;31&lt;/SUP&gt; elements &lt;/SPAN&gt;on the Windows operating system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I upgraded to 14.1 and have sufficient RAM but a simple "y = j(33000,33000,1);"&amp;nbsp; wasn't working for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;IIRC, Rick Wicklin suggested adding "-MEMSIZE 12G" to the shortcut I start SAS with.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I went a little deeper and edited that configuration into my SASv9.CFG file and now I can allocate large arrays on my Win7 16GB RAM machine. Thanks, Rick!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Incidentally, this lets me run much larger Monty Hall simulations -- up to a quarter of a billion sims -- see attached code &amp;amp; results below based on Rick's "DO Loop" Monty Hall example -- and remember to "switch doors"!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc iml;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;t0 = time();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;NumSim = 2.5e8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* number of simulated games */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;car = randfun(NumSim, "Table", {1 1 1}/3);&amp;nbsp; /* unknown door hides car */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;guess = j(NumSim, 1, 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* WLOG, you guess door=1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;show = choose(car=2, 3, 2);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* host shows you a goat --&amp;gt; if car behind 2 then 3 else 2 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;switch = choose(show=2, 3, 2);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* the door you could switch to -- if host shows 2 then 3 else 2 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;winIfSwitch = mean(switch=car);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* (P(win | switch) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;winIfStay = mean(guess=car);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* (P(win | do not switch) */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;elapsedTime = time() - t0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;print "Monty Hall: NumSim = " NumSim[format=comma12. label=EMPTY]&amp;nbsp; winIfStay[format=8.6 rowname="&amp;nbsp;&amp;nbsp; p(WinIfStay)" label=EMPTY] winIfSwitch[format=8.6 rowname="&amp;nbsp;&amp;nbsp; p(WinIfSwitch)" label=EMPTY]&amp;nbsp; "&amp;nbsp;&amp;nbsp; Time in Seconds = " elapsedTime[format=4.1 label=EMPTY];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Monty Hall: NumSim =&amp;nbsp;&amp;nbsp; 250,000,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; p(WinIfStay) 0.333347&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; p(WinIfSwitch) 0.666653&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; Time in Seconds =&amp;nbsp; 11.1&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 15:27:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211853#M2190</guid>
      <dc:creator>stevo642</dc:creator>
      <dc:date>2015-07-27T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211854#M2191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Completely off topic-- @stevo642, how did you get access to 14.1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211854#M2191</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-29T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211855#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was released last week!&lt;/P&gt;&lt;P&gt;Here's the What's New for the Analytical products: &lt;A class="active_link" href="https://support.sas.com/documentation/141/index.html" title="https://support.sas.com/documentation/141/index.html"&gt;SAS 14.1 Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And here's highlights: &lt;A href="http://support.sas.com/rnd/app/newreleases.html" title="http://support.sas.com/rnd/app/newreleases.html"&gt;SAS Analytics: Highlights of 14.1, 13.2, 13.1, and 12.1 Releases&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211855#M2192</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-07-29T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211856#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got IML 14.1 when upgraded from 9.4 (TS1M1)&amp;nbsp; to&amp;nbsp; 9.4 (TS1M3) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211856#M2193</guid>
      <dc:creator>stevo642</dc:creator>
      <dc:date>2015-07-29T17:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211857#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm--I would have thought that there would have been a large splash headline on the Communities page...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211857#M2194</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-29T18:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211858#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wait for it...coming soon!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211858#M2195</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-07-29T18:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Allocating very large arrays in IML 14.1</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211859#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a blog post that describes this issue and the way to resolve it:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2015/07/31/large-matrices.html"&gt;Large matrices in SAS/IML 14.1 &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 13:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Allocating-very-large-arrays-in-IML-14-1/m-p/211859#M2196</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-07-31T13:00:35Z</dc:date>
    </item>
  </channel>
</rss>

