<?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 distribution issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455252#M115142</link>
    <description>&lt;P&gt;PROC FREQ only generates counts. If you want SUMs you need to use PROC MEANS instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise I think you need to show what you expect - as of now we're guessing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, read your log. Your code as posted generates errors, so it has issues beyond what you're stating here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;freq&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; work&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;sample_summary2&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;tables&lt;/SPAN&gt; nem_hud&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;kwh&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;  &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;nocol norow nopercent chisq&lt;SPAN class="token punctuation"&gt;; &amp;lt;- no sum available here;&lt;/SPAN&gt;
output out&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;table1&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; profilecode2&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&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, 18 Apr 2018 15:40:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-18T15:40:48Z</dc:date>
    <item>
      <title>Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455182#M115109</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleDOC.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19906i6EFC3AEDF0A4E907/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleDOC.jpg" alt="SampleDOC.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hello, I am trying to create a proc freq that would produce the KWH (a numeric value) where the frequency counts are.&amp;nbsp; Instead my KWH values are listed above as if they are headers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= work.sample_summary2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; nem_hud*kwh /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nocol&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;norow&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nopercent&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;chisq&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=table1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; profilecode2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 13:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455182#M115109</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2018-04-18T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455186#M115111</link>
      <description>&lt;P&gt;Your picture is just too small to be of any use in understanding what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you fix that? Can you type in a (portion of) the table the way you would like it to be?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455186#M115111</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-18T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455189#M115112</link>
      <description>&lt;P&gt;Can't see the picture &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455189#M115112</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-04-18T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455192#M115115</link>
      <description>&lt;TABLE cellspacing="10"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;Table of NEM_HUD by KWH&amp;nbsp; KWH(KWH) Total438 938 6278 7000 7559 8269 5452066 9549687 12876498 15214957NEM_HUD &amp;nbsp;NEM FrequencyNon_NEM Frequency&amp;nbsp; &amp;nbsp;Total Frequency &lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="byline"&gt;&lt;SPAN class="byline"&gt;profilecode2=NJAMP&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:08:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455192#M115115</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2018-04-18T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455199#M115119</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleDOC1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19908i8D0305EE285ACB54/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleDOC1.jpg" alt="SampleDOC1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455199#M115119</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2018-04-18T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455204#M115121</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleDOC2.jpg" style="width: 590px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19909i47009E57666E2769/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleDOC2.jpg" alt="SampleDOC2.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleDOC1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19910i6DDCAAF7AFF91165/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleDOC1.jpg" alt="SampleDOC1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= work.sample_summary2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; nem_hud*kwh /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nocol&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;norow&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nopercent&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;chisq&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=table1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; profilecode2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455204#M115121</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2018-04-18T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455209#M115124</link>
      <description>&lt;P&gt;Now we can see the picture. Can you please type in an example of what you want the output to look like? Use the {i} box, or the running man icon when you do this.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455209#M115124</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-18T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455228#M115135</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;I'm looking to summarize the variable "kwh" in the tables statement.  in the results I would like to see the kwh values where the counts are.


proc freq data= work.sample_summary2;
tables nem_hud*sum(kwh)  /nocol norow nopercent chisq;
output out=table1;
by profilecode2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455228#M115135</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2018-04-18T14:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455231#M115137</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;tables nem_hud*kwh /nocol norow nopercent chisq LIST;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try the LIST option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/139205"&gt;@tobyfarms&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleDOC2.jpg" style="width: 590px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19909i47009E57666E2769/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleDOC2.jpg" alt="SampleDOC2.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SampleDOC1.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19910i6DDCAAF7AFF91165/image-size/large?v=v2&amp;amp;px=999" role="button" title="SampleDOC1.jpg" alt="SampleDOC1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;graphics&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;freq&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= work.sample_summary2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;tables&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; nem_hud*kwh /&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;nocol&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;norow&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;nopercent&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;chisq&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;output&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=table1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; profilecode2;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;graphics&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;off&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455231#M115137</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-18T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455251#M115141</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; hello, I am still receiving the same result using the LIST option.</description>
      <pubDate>Wed, 18 Apr 2018 15:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455251#M115141</guid>
      <dc:creator>tobyfarms</dc:creator>
      <dc:date>2018-04-18T15:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq distribution issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455252#M115142</link>
      <description>&lt;P&gt;PROC FREQ only generates counts. If you want SUMs you need to use PROC MEANS instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise I think you need to show what you expect - as of now we're guessing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, read your log. Your code as posted generates errors, so it has issues beyond what you're stating here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;freq&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; work&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;sample_summary2&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;tables&lt;/SPAN&gt; nem_hud&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;kwh&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;  &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;nocol norow nopercent chisq&lt;SPAN class="token punctuation"&gt;; &amp;lt;- no sum available here;&lt;/SPAN&gt;
output out&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;table1&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; profilecode2&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&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, 18 Apr 2018 15:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Freq-distribution-issue/m-p/455252#M115142</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-18T15:40:48Z</dc:date>
    </item>
  </channel>
</rss>

