<?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: Printing Sub totals using PROC TABULATE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136762#M295822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepsiv,&lt;/P&gt;&lt;P&gt;In the days before ODS I post processed tabulate output to provide shading in totals and subtotals so I expect what you seek is possible, but surely you don't want to down the post-processing route?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As snoopy369 has already suggested PROC REPORT has a natural way of achieving what you request. Have you had a look in the ODS Reporting Community? I expect you'll find examples there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Nov 2013 08:11:03 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2013-11-09T08:11:03Z</dc:date>
    <item>
      <title>Printing Sub totals using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136759#M295819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4503" alt="proc tab.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4503_proc tab.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And my report shows up like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4501" alt="report1.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/4501_report1.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is that I need to print subtotals for YRMNTH field in this same report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So ideally my report should be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="report.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/4507_report.jpg" /&gt;&lt;/P&gt;&lt;P&gt;How do I achieve this with PROC TABULATE? Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 19:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136759#M295819</guid>
      <dc:creator>DeepSiv</dc:creator>
      <dc:date>2013-11-08T19:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sub totals using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136760#M295820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe you could do exactly that with PROC TABULATE.&amp;nbsp; You would use PROC REPORT for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do something sort-of like that using ALL, making YRMNTH into a page expression, if that is acceptable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables all yrmnth, all .......;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ..... is all of the rest of your table statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the first ALL now is for the entire report, you'll get one page for that, and one page for each YRMNTH value, with a subtotal on it (put ALL wherever you want that subtotal).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 21:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136760#M295820</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-11-08T21:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sub totals using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136761#M295821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you would provide a data step creating sample data and then a proc tabulate using this sample data there would be a very good chance that someone actually would post working and tested code doing what you ask for....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you could get to something close to what you ask for by modifying your code as follows:&lt;/P&gt;&lt;P&gt;TABLE YRMNTH* (TYPE*CENTER*NAME*CODE ALL='TOTAL YRMNTH') ALL='TOTAL', .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 06:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136761#M295821</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-11-09T06:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sub totals using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136762#M295822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepsiv,&lt;/P&gt;&lt;P&gt;In the days before ODS I post processed tabulate output to provide shading in totals and subtotals so I expect what you seek is possible, but surely you don't want to down the post-processing route?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As snoopy369 has already suggested PROC REPORT has a natural way of achieving what you request. Have you had a look in the ODS Reporting Community? I expect you'll find examples there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 08:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136762#M295822</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-11-09T08:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sub totals using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136763#M295823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions. If I use PROC REPORT, I m unable to print the row total for the amount across newcode.&amp;nbsp; I need to compute the row total for the NEWCODE variable as well. Please refer my below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="proc report.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/4520_proc report.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report appears like this: Sub total objective gets satisfied, but row total goes&amp;nbsp; missing.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="report.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/4521_report.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me with the computation for the row total of the across field? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 20:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136763#M295823</guid>
      <dc:creator>DeepSiv</dc:creator>
      <dc:date>2013-11-11T20:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Sub totals using PROC TABULATE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136764#M295824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll find your answer invthe ODS and Base Reporting Community&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Printing-Sub-totals-using-PROC-TABULATE/m-p/136764#M295824</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-11-11T22:49:44Z</dc:date>
    </item>
  </channel>
</rss>

