<?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: Proc Freq Out of memory issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174226#M264531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha! Just (right this moment) had one of these over here.&lt;/P&gt;&lt;P&gt;Another "why I don't use SQL in SAS, unless absolutely necessary".&lt;/P&gt;&lt;P&gt;The proc SQL in question took 46 minutes real time, while the data step solution took 6 seconds(!!!). And the SQL dropped 1 observation one of the counts on top of that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 13:51:25 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-10-08T13:51:25Z</dc:date>
    <item>
      <title>Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174213#M264518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing issue with proc freq .request you to please help me out.&lt;/P&gt;&lt;P&gt;1.while running Proc freq on 57millions records.Its throwing an error of memory issue. I am not creating output in HTML / ODS. output is created in sasdata set and only generating&amp;nbsp; nlevels (distinct value)Note that I can't use proc sql as there is some issue with distinct cout. How to mitigate memory issue.&lt;/P&gt;&lt;P&gt;2.Can I stop count and cummulative percent calculation.Only I need distinct value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 22:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174213#M264518</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-10-06T22:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174214#M264519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post the code you're using so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 22:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174214#M264519</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-06T22:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174215#M264520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please find the code which I am using to pull the nlevels of records. variable are both in character and numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=table_name (keep=col_name) noprint nlevels;&lt;/P&gt;&lt;P&gt;table col_name/out=freqout(keep=col_name) norow nocol ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using norow nocol to avoid count and cum percent getting calculated but it's not helping me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 23:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174215#M264520</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-10-06T23:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174216#M264521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;57 million records is a lot and may take a while but not run out of memory. Have you tried the memsize option? Are you running on a server or a desktop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you sort the data set without running out of memory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 23:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174216#M264521</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-06T23:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174217#M264522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have a couple of syntax issues:&lt;/P&gt;&lt;P&gt;the output dataset for a single variable would have count and percent it would not have levels. NOROW and NOCOL suppress percentages of a cross tab, so they are doing nothing with your data, use NOCOUNT and NOPERCENT.&lt;/P&gt;&lt;P&gt;Levels information is displayed in listing or ods output. If you want the result in a dataset then you use ODS to get that.&lt;/P&gt;&lt;P&gt;Drop the nlevels and see if that works.&lt;/P&gt;&lt;P&gt;Then run a second proc freq on your output data set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=freqout;&lt;/P&gt;&lt;P&gt;tables count;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;the total CUMULATIVE frequency will be how many original unique values were in the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect you may have had similar syntax errors in your SQL approach.&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count(*)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from (select distinct col_name from table_name);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 23:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174217#M264522</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-10-06T23:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174218#M264523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The output wouldn't have count or percent, only the distinct values and the Nlevels won't do anything besides take up processing time, removing it does speed it up significantly as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends on what the OP wants in the final results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 00:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174218#M264523</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-07T00:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174219#M264524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sort data=table_name (keep=col_name) out=temp1 nodupkey;&lt;/P&gt;&lt;P&gt;by col_name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* work.temp1 has one line per distinct value */&lt;/P&gt;&lt;P&gt;/* get the dataset size from the table metadata, quicker than a count(*) */&lt;/P&gt;&lt;P&gt;data freqout (keep=col_name);&lt;/P&gt;&lt;P&gt;set sashelp.vtable (rename=(nobs=col_name) where=(libname='WORK' and memname='TEMP1'))&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 08:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174219#M264524</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-07T08:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174220#M264525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give some sample data and the output to explain your question more .&lt;/P&gt;&lt;P&gt;and one more important thing is if your dataset have been sorted ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 14:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174220#M264525</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-07T14:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174221#M264526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the same syntax for proc sql but due to precision the output are different in proc freq vs proc sql distinct count.I can't use proc sql.&lt;/P&gt;&lt;P&gt;I understand that NOROW and NOCOL is not going to help me.I was just trying to stop calcualtion happening in cumalative and count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think NOCOUNT options are there in proc freq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion using ODS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 15:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174221#M264526</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-10-07T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174222#M264527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response and suggestions.&lt;/P&gt;&lt;P&gt;I have already tried proc sort with nodupkey and proc sql.but count are not matching with one of my report.&lt;/P&gt;&lt;P&gt;Due to which I can't use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 15:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174222#M264527</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-10-07T15:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174223#M264528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then your report is obviously broken.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 06:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174223#M264528</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-08T06:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174224#M264529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="sasSource"&gt;I tested with a 21M observations faked dataset on UE.&lt;/P&gt;&lt;P class="sasSource"&gt;There is no problem with that. If you have a lot of different values all what is counted needs to be in memory.&lt;/P&gt;&lt;P class="sasSource"&gt;Sorting/ordering&amp;nbsp; on the variable and than doing count with by processing will limit memory usage.&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;27M is still small unless you have big/long variables.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt;What are you system limits resources versions and environment?&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;44&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data carsm (drop=i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;45&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.cars;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;46&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do i=1 to 50000;&amp;nbsp; output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;47&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote1_1412758932683"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;NOTE: There were 428 observations read from the data set SASHELP.CARS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote2_1412758932683"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;NOTE: The data set WORK.CARSM has 21400000 observations and 15 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote3_1412758932683"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;NOTE: DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24.44 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9.43 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;49&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options fullstimer;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc freq data=carsm ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;51&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table make / noprint norow nocol out=cart ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasSource"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;52&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote4_1412758932683"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;NOTE: There were 21400000 observations read from the data set WORK.CARSM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote5_1412758932683"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;NOTE: The data set WORK.CART has 38 observations and 3 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote6_1412758932683"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;NOTE: PROCEDURE FREQ used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.02 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.99 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; system cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.48 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memory&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; 677.43k&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OS Memory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23188.00k&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08-10-2014 05:02:12 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Step Count&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; 6&amp;nbsp; Switch Count&amp;nbsp; 34&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Faults&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; 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Reclaims&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; 242&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Page Swaps&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; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Voluntary Context Switches&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 94&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Involuntary Context Switches&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 61&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Block Input Operations&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 672&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="sasNote"&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Block Output Operations&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 280&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 09:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174224#M264529</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-08T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174225#M264530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/50/827.html" title="http://support.sas.com/kb/50/827.html"&gt;50827 - When you use the COUNT(Distinct X) function in the SQL procedure, incorrect counts might be returned&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How was your report calculated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You never mentioned if you were running on a server or desktop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:39:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174225#M264530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-08T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174226#M264531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha! Just (right this moment) had one of these over here.&lt;/P&gt;&lt;P&gt;Another "why I don't use SQL in SAS, unless absolutely necessary".&lt;/P&gt;&lt;P&gt;The proc SQL in question took 46 minutes real time, while the data step solution took 6 seconds(!!!). And the SQL dropped 1 observation one of the counts on top of that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 13:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174226#M264531</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-08T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174227#M264532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologize for not mentioning it.I am running it on server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174227#M264532</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-10-08T15:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174228#M264533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your full code/log with error, on a server you should definitely not be running out of memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still are try something like the following. It's brute force and I would never use it in production:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*trim data set first;&lt;/P&gt;&lt;P&gt;data first_pass;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;by col_name notsorted;&lt;/P&gt;&lt;P&gt;if first.col_name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*then run a proc freq on it;&lt;/P&gt;&lt;P&gt;proc freq data=first_pass nlevels;&lt;/P&gt;&lt;P&gt;table col_name;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174228#M264533</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-10-08T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174229#M264534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the error.&lt;/P&gt;&lt;P&gt;ERROR: Not enough memory for all variables. Variable RAR_ENTERED_ACCT removed after 3470836 levels.&lt;/P&gt;&lt;P&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;&lt;P&gt;Below is the Code which I am running&lt;/P&gt;&lt;P&gt; proc freq data=SRS_AUTH_201302 noprint;&lt;/P&gt;&lt;P&gt;&amp;amp;num_freq;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;num_freq is a macro variable having last of 45 variable with proper syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 21:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174229#M264534</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-11-04T21:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174230#M264535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should show what &amp;amp;num_freq looks like. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table var1*var2*var3*...*var45/out=want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can try replacing that with a Proc SQL statement instead or partitioning the data set and running the code multiple times. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 00:21:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174230#M264535</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-05T00:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174231#M264536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This paragraph &lt;A href="http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_freq_details97.htm" title="http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_freq_details97.htm"&gt;Base SAS(R) 9.4 Procedures Guide: Statistical Procedures, Second Edition&lt;/A&gt; explains the resource usage in proc print.&lt;/P&gt;&lt;P&gt;Giving a variable list all possible values must fit into memory.&amp;nbsp;&amp;nbsp; That RAR_ENTERED_ACCT has a lot of them, wondering how that printed list would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc options will show all settings including the memory but you can limit that to group is memory. &lt;A href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#n0l4emy9f5ut16n1eabp1ekzd8wb.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#n0l4emy9f5ut16n1eabp1ekzd8wb.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Take all your variables in that list do those calculations and it will most likely showing you you are running out of memory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally with big datasets is doesn't make sense to print all variables in a dataset as there are some rather unique ones like accountnumbers&amp;nbsp; or record-id.&lt;/P&gt;&lt;P&gt;When there is a measurement a classification (using format) can be very useful.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 06:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174231#M264536</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-11-05T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Out of memory issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174232#M264537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variable RAR_ENTERED_ACCT removed after 3470836 levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This simply means that at the time of the error, 3470836 distinct values for RAR_ENTERED_ACCT had been encountered, which signals that this variable is not one for which freq makes ANY sense. Or do you like to read sheets with &amp;gt; 3 million lines?&lt;/P&gt;&lt;P&gt;Inspect the data first visually to determine which variables can sensibly be counted for distinct values!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 07:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-Out-of-memory-issue/m-p/174232#M264537</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-05T07:02:11Z</dc:date>
    </item>
  </channel>
</rss>

