<?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: Memory Limit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483547#M125398</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply and sorry for delay in replying your message!.&lt;BR /&gt;&lt;BR /&gt;I've tried -memsize=max on the command line but got this error message:&lt;BR /&gt;&lt;BR /&gt;3 -MEMSIZE=max;&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;I'm just wondering if I've written the syntax properly or there is another&lt;BR /&gt;solution?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Marmar&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Aug 2018 19:24:02 GMT</pubDate>
    <dc:creator>Marmar</dc:creator>
    <dc:date>2018-08-02T19:24:02Z</dc:date>
    <item>
      <title>Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481661#M124630</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got problem with SAS performance on my PC. When processing big data, it works very slow. At first, it shows the message of SAS not responding then after minute, the results are displayed! I've tried to increase the limit of&amp;nbsp;memory by the syntax of : -Memsize=n but got error!&lt;/P&gt;&lt;P&gt;Any comment on this problem would be appreciated greatly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 19:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481661#M124630</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-07-26T19:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481686#M124640</link>
      <description>&lt;P&gt;Try -memsize=max in the SAS invocation from the command line (this gives SAS as much memory as it needs subject to what is available on your machine).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 21:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481686#M124640</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-07-26T21:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481697#M124647</link>
      <description>&lt;P&gt;Speed can depend on many factors, and memory is only one of those.&amp;nbsp; (Unfortunately, poor programming technique ranks high on the list.)&amp;nbsp; If you want more specific advice, post the log of a slow-running program.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 21:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481697#M124647</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-26T21:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481704#M124654</link>
      <description>&lt;P&gt;Is your data on your machine or a remote location and accessed over a network? Network traffic can have an impact.&lt;/P&gt;
&lt;P&gt;How "big" is big? Number of records and variables.&lt;/P&gt;
&lt;P&gt;Also, are using a stand alone version of SAS or connecting to a SAS server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you attempt to use &amp;nbsp;-Memsize=n? It would have to be either in the SAS configuration file or on a command line/ program object as the option must be set at start up and cannot be changed while running. In a server environment the Admin of the server would control users memsize.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481704#M124654</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-26T22:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481722#M124664</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32246"&gt;@ChrisBrooks&lt;/a&gt;&amp;nbsp;&lt;EM&gt;this gives SAS as much memory as it needs subject to what is available on your machine&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MEMSIZE includes paging space, so is pretty much illimited.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;REALMEMSIZE is the setting used to control RAM usage.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The documentation is confusing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 23:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/481722#M124664</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-26T23:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483547#M125398</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply and sorry for delay in replying your message!.&lt;BR /&gt;&lt;BR /&gt;I've tried -memsize=max on the command line but got this error message:&lt;BR /&gt;&lt;BR /&gt;3 -MEMSIZE=max;&lt;BR /&gt;-&lt;BR /&gt;180&lt;BR /&gt;&lt;BR /&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;&lt;BR /&gt;I'm just wondering if I've written the syntax properly or there is another&lt;BR /&gt;solution?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Marmar&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2018 19:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483547#M125398</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-08-02T19:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483553#M125401</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your comment and sorry for delay in replying!.&lt;BR /&gt;&lt;BR /&gt;Actually, I don't get any message error on the log, just the software works&lt;BR /&gt;slowly when running a command of Proc Print a data file of about 64,000 and&lt;BR /&gt;I see the message on top of page indicating SAS not responding. Then after&lt;BR /&gt;a while it process the command and get the results!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Marmar&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2018 19:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483553#M125401</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-08-02T19:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483556#M125403</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your comment and sorry for delay in replying!.&lt;BR /&gt;&lt;BR /&gt;I'm using SAS on the PC and data file is stored on my machine which&lt;BR /&gt;containing about 64,000 with 20 variables. Actually, I just get error with&lt;BR /&gt;the command of Proc Print and the number of variable about 6. I see no&lt;BR /&gt;error message on the Log, just see the message on top indicating SAS not&lt;BR /&gt;responding. After few minutes the command is running and get the results.&lt;BR /&gt;&lt;BR /&gt;I used -Memsize=max before programming!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Marmar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2018 19:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483556#M125403</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-08-02T19:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483557#M125404</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you for your comment and sorry for delay in replying!.&lt;BR /&gt;&lt;BR /&gt;I've tried REALMEMSIZE as well but got no improvement.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Maryam&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Aug 2018 19:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483557#M125404</guid>
      <dc:creator>Marmar</dc:creator>
      <dc:date>2018-08-02T19:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483569#M125409</link>
      <description>&lt;P&gt;This may not solve the entire problem, but there are options on PROC PRINT that force SAS to look through the entire data set twice.&amp;nbsp; You didn't post the log, so I can't see what options you used.&amp;nbsp; Try adding a FORMAT statement that applies a format to all 6 variables, and see how much impact that has.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483569#M125409</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-08-02T20:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483576#M125410</link>
      <description>&lt;P&gt;Proc PRINT against a data set like what you described takes no more than 500 &lt;EM&gt;kilo&lt;/EM&gt;bytes of memory. Since I can't imagine your computer having less than 1 &lt;EM&gt;giga&lt;/EM&gt;byte of memory, i.e. at least 2000 times more than you need, poor performance you're observing has nothing to do with insufficient memory and lies elsewhere. For example, If you're printing all 64,000 observations (can't imagine whey that would be necessary), you may want to check if the destination to which you're sending the output isn't somehow constrained.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 20:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Memory-Limit/m-p/483576#M125410</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2018-08-02T20:16:27Z</dc:date>
    </item>
  </channel>
</rss>

