<?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 Frequency of Column Totals in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-Column-Totals/m-p/429893#M281537</link>
    <description>&lt;P&gt;I'm still learning SAS and I'm slightly confused once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically have a table and I just want to see the freq distribution of a few variable totals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input zip $ branch $ box1_99 box100_199 box199_200;

	datalines;
	501 52--- 1 1 0
	501 81--- 2 0 0
	501 99--- 1 1 6
	101 22--- 2 10 30
	101 23--- 48 24 60
	101 31--- 40 20 50
	101 42--- 56 36 70
	;
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And from the sample data, this is the output I'd like to see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Column Totals.png" style="width: 225px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18036i702E20DCD6B0CDDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Column Totals.png" alt="Column Totals.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus question: Should I want to see the output for only a specific zip, how should the code be revised?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help in the right direction would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 05:47:54 GMT</pubDate>
    <dc:creator>Tony5</dc:creator>
    <dc:date>2018-01-23T05:47:54Z</dc:date>
    <item>
      <title>Frequency of Column Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-Column-Totals/m-p/429893#M281537</link>
      <description>&lt;P&gt;I'm still learning SAS and I'm slightly confused once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically have a table and I just want to see the freq distribution of a few variable totals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input zip $ branch $ box1_99 box100_199 box199_200;

	datalines;
	501 52--- 1 1 0
	501 81--- 2 0 0
	501 99--- 1 1 6
	101 22--- 2 10 30
	101 23--- 48 24 60
	101 31--- 40 20 50
	101 42--- 56 36 70
	;
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And from the sample data, this is the output I'd like to see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Column Totals.png" style="width: 225px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18036i702E20DCD6B0CDDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Column Totals.png" alt="Column Totals.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus question: Should I want to see the output for only a specific zip, how should the code be revised?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help in the right direction would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 05:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-of-Column-Totals/m-p/429893#M281537</guid>
      <dc:creator>Tony5</dc:creator>
      <dc:date>2018-01-23T05:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency of Column Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-Column-Totals/m-p/429894#M281538</link>
      <description>&lt;P&gt;Oops. I found the answer just as I was reading more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the benefit of future newbies like me...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means sum maxdec=0;
*** where zip=101;
var box1_99 box100_199 box199_200;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jan 2018 05:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-of-Column-Totals/m-p/429894#M281538</guid>
      <dc:creator>Tony5</dc:creator>
      <dc:date>2018-01-23T05:52:33Z</dc:date>
    </item>
  </channel>
</rss>

