<?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 Dealing with PROC SQL message : Out of memory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811582#M320129</link>
    <description>&lt;P&gt;Hello Exprts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, how to deal with the proc sql error message : out of memory.&lt;/P&gt;
&lt;P&gt;for the following code applied on a big tables.&lt;/P&gt;
&lt;P&gt;The only method allowed is sas sql ( there is no "merge" or "set" allowed ..)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;selec m.t1, n.v1, m.t2, n.v2&lt;/P&gt;
&lt;P&gt;from toto1 m left join&amp;nbsp; toto2 n&lt;/P&gt;
&lt;P&gt;on m.id=n.id&lt;/P&gt;
&lt;P&gt;where&amp;nbsp; m.t3='2' and m.t4='4';&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 22:18:22 GMT</pubDate>
    <dc:creator>LineMoon</dc:creator>
    <dc:date>2022-05-04T22:18:22Z</dc:date>
    <item>
      <title>Dealing with PROC SQL message : Out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811582#M320129</link>
      <description>&lt;P&gt;Hello Exprts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, how to deal with the proc sql error message : out of memory.&lt;/P&gt;
&lt;P&gt;for the following code applied on a big tables.&lt;/P&gt;
&lt;P&gt;The only method allowed is sas sql ( there is no "merge" or "set" allowed ..)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;selec m.t1, n.v1, m.t2, n.v2&lt;/P&gt;
&lt;P&gt;from toto1 m left join&amp;nbsp; toto2 n&lt;/P&gt;
&lt;P&gt;on m.id=n.id&lt;/P&gt;
&lt;P&gt;where&amp;nbsp; m.t3='2' and m.t4='4';&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 22:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811582#M320129</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2022-05-04T22:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with PROC SQL message : Out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811586#M320130</link>
      <description>You probably can't then, if you're not allowed alternatives.&lt;BR /&gt;Talk to your IT to increase resources.</description>
      <pubDate>Wed, 04 May 2022 22:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811586#M320130</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-05-04T22:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with PROC SQL message : Out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811591#M320131</link>
      <description>&lt;P&gt;What's your SAS MEMSIZE setting? You can check it by running this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option = memsize;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Large SQL queries often require a lot of memory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you are missing a CREATE TABLE on your SELECT. That might be the causing the memory problem. Change your program like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
selec m.t1, n.v1, m.t2, n.v2
from toto1 m left join  toto2 n
on m.id=n.id
where  m.t3='2' and m.t4='4';
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 23:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811591#M320131</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-04T23:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with PROC SQL message : Out of memory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811602#M320136</link>
      <description>&lt;P&gt;Without a CREATE TABLE, your SELECT pushes the result to the output window, and that will easily overwhelm your UI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "requirement" to not use the most powerful tool available in SAS is as stupid as it gets. I advise to seek employment somewhere else, working for idiots won't get you far.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 05:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dealing-with-PROC-SQL-message-Out-of-memory/m-p/811602#M320136</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-05T05:00:53Z</dc:date>
    </item>
  </channel>
</rss>

