<?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 Tabulate Totals in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257490#M49447</link>
    <description>&lt;P&gt;Just Guess:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; class gender residency ethnicity academic_period_desc;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; class gender ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class residency ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class &amp;nbsp;ethnicity ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class academic_period_desc;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2016 01:22:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-03-18T01:22:03Z</dc:date>
    <item>
      <title>Proc Tabulate Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257415#M49419</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m trying to display two levels of sub totals and totals.&amp;nbsp; Using three columns such that each column has totals of increasing detail and the grand total at the bottom.&lt;/P&gt;&lt;P&gt;This works for two columns but three I’m running into an issue with three.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two columns (works)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; data=enrollment &amp;nbsp;out=enrollment3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var enrolled;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class gender residency ethnicity academic_period_desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table gender*residency*ethnicity*enrolled=' ' all*residency*enrolled=' ', academic_period_desc;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;Three columns (question)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; data=enrollment &amp;nbsp;out=enrollment3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var enrolled;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class gender residency ethnicity academic_period_desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table gender*residency*ethnicity*enrolled=' ' all*residency*enrolled=' ' all*residency*ethnicity*enrolled=' ', academic_period_desc;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two level example is attached.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12387iC80CE84544D49109/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Two Levels.png" title="Two Levels.png" /&gt;</description>
      <pubDate>Thu, 17 Mar 2016 19:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257415#M49419</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-17T19:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257433#M49425</link>
      <description>&lt;P&gt;You might describe what doesn't work.&lt;/P&gt;
&lt;P&gt;You may want to investigate some code like&lt;/P&gt;
&lt;P&gt;(all residency)*enrolled&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(all residency)*ethnicity*enrolled&lt;/P&gt;
&lt;P&gt;to see if that gives a better grouping for whay you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And provide example data if you want something testable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW you example table output does not show "ethnicity" but the code you say works and generates the output&amp;nbsp;includes ethnicity.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 19:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257433#M49425</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-17T19:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257490#M49447</link>
      <description>&lt;P&gt;Just Guess:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; class gender residency ethnicity academic_period_desc;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; class gender ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class residency ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class &amp;nbsp;ethnicity ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class academic_period_desc;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 01:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257490#M49447</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-18T01:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257509#M49451</link>
      <description>Hi, there's no benefit to multiple CLASS statements unless you are specifying different options on each CLASS statement.&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 18 Mar 2016 04:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257509#M49451</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-18T04:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257622#M49466</link>
      <description>&lt;P&gt;You might be looking for multiple uses of All to get the different subtotals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;table (gender all)*(residency all)*(ethnicity all)*enrolled=' '&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; academic_period_desc;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257622#M49466</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-18T14:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Totals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257625#M49467</link>
      <description>&lt;P&gt;Thanks, I was having a really hard time researching this one.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 14:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Tabulate-Totals/m-p/257625#M49467</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-03-18T14:21:25Z</dc:date>
    </item>
  </channel>
</rss>

