<?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: Table Programming- get total column at the bottom in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706504#M216832</link>
    <description>&lt;P&gt;Have you tried using PROC TABULATE? That will likely get you the closest to the image shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n128ae2fqm2jcwn10k5hye2u7f2x.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n128ae2fqm2jcwn10k5hye2u7f2x.htm&amp;amp;locale=en&lt;/A&gt;&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/111564"&gt;@HitmonTran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;New to SAS.&amp;nbsp; I need to create a table, that shows total count across all variables and across all obs.&amp;nbsp; I am stuck on how to get that, thanks.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; (where &lt;EM&gt;Age_Group&lt;/EM&gt; 1= 18-50yo,&amp;nbsp; &lt;EM&gt;Age_Group 2&lt;/EM&gt;=51-65yo&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&lt;EM&gt;Age_Group 3&lt;/EM&gt;= 65+yo):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Site    Age     Age_Group&lt;BR /&gt;1       18      1&lt;BR /&gt;1       18      1&lt;BR /&gt;1       18      1&lt;BR /&gt;2       20      1&lt;BR /&gt;2       55      2&lt;BR /&gt;2       55      2&lt;BR /&gt;3       55      2&lt;BR /&gt;3       70      3&lt;BR /&gt;3       75      3&lt;CODE class=" language-sas"&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;want (table shell):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1608167128115.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52718i4D1C02ACDA4AA3D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1608167128115.png" alt="HitmonTran_0-1608167128115.png" /&gt;&lt;/span&gt;&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;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 01:15:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-12-17T01:15:15Z</dc:date>
    <item>
      <title>Table Programming- get total column at the bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706502#M216830</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;New to SAS.&amp;nbsp; I need to create a table, that shows total count across all variables and across all obs.&amp;nbsp; I am stuck on how to get that, thanks.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; (where &lt;EM&gt;Age_Group&lt;/EM&gt; 1= 18-50yo,&amp;nbsp; &lt;EM&gt;Age_Group 2&lt;/EM&gt;=51-65yo&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&lt;EM&gt;Age_Group 3&lt;/EM&gt;= 65+yo):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Site    Age     Age_Group&lt;BR /&gt;1       18      1&lt;BR /&gt;1       18      1&lt;BR /&gt;1       18      1&lt;BR /&gt;2       20      1&lt;BR /&gt;2       55      2&lt;BR /&gt;2       55      2&lt;BR /&gt;3       55      2&lt;BR /&gt;3       70      3&lt;BR /&gt;3       75      3&lt;CODE class=" language-sas"&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;want (table shell):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1608167128115.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52718i4D1C02ACDA4AA3D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1608167128115.png" alt="HitmonTran_0-1608167128115.png" /&gt;&lt;/span&gt;&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>Thu, 17 Dec 2020 01:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706502#M216830</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2020-12-17T01:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table Programming- get total column at the bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706504#M216832</link>
      <description>&lt;P&gt;Have you tried using PROC TABULATE? That will likely get you the closest to the image shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n128ae2fqm2jcwn10k5hye2u7f2x.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n128ae2fqm2jcwn10k5hye2u7f2x.htm&amp;amp;locale=en&lt;/A&gt;&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/111564"&gt;@HitmonTran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;New to SAS.&amp;nbsp; I need to create a table, that shows total count across all variables and across all obs.&amp;nbsp; I am stuck on how to get that, thanks.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; (where &lt;EM&gt;Age_Group&lt;/EM&gt; 1= 18-50yo,&amp;nbsp; &lt;EM&gt;Age_Group 2&lt;/EM&gt;=51-65yo&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&lt;EM&gt;Age_Group 3&lt;/EM&gt;= 65+yo):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Site    Age     Age_Group&lt;BR /&gt;1       18      1&lt;BR /&gt;1       18      1&lt;BR /&gt;1       18      1&lt;BR /&gt;2       20      1&lt;BR /&gt;2       55      2&lt;BR /&gt;2       55      2&lt;BR /&gt;3       55      2&lt;BR /&gt;3       70      3&lt;BR /&gt;3       75      3&lt;CODE class=" language-sas"&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;want (table shell):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1608167128115.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52718i4D1C02ACDA4AA3D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1608167128115.png" alt="HitmonTran_0-1608167128115.png" /&gt;&lt;/span&gt;&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;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706504#M216832</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-17T01:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table Programming- get total column at the bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706509#M216835</link>
      <description>how do i get the %?</description>
      <pubDate>Thu, 17 Dec 2020 01:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706509#M216835</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2020-12-17T01:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table Programming- get total column at the bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706511#M216836</link>
      <description>Example 12 shows the methods to calculate the percentages. If you want it formatted EXACTLY as shown you have to manually create that table via pre-calculations and then display it using PROC REPORT. &lt;BR /&gt;&lt;BR /&gt;Here's a way to get the data but you'll then need to use PROC REPORT to display the data.&lt;BR /&gt;&lt;A href="https://gist.github.com/statgeek/0c4aeec9053cf8050be18a03b842c1b9" target="_blank"&gt;https://gist.github.com/statgeek/0c4aeec9053cf8050be18a03b842c1b9&lt;/A&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Programming-get-total-column-at-the-bottom/m-p/706511#M216836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-17T01:43:41Z</dc:date>
    </item>
  </channel>
</rss>

