<?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: Adding one summary row at the bottom in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Adding-one-summary-row-at-the-bottom/m-p/175996#M45128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding sums is not really a table thing, rather a report requirement.&lt;/P&gt;&lt;P&gt;PROC PRINT could do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2014 10:30:11 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-10-08T10:30:11Z</dc:date>
    <item>
      <title>Adding one summary row at the bottom</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-one-summary-row-at-the-bottom/m-p/175995#M45127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like an absurdly newbie question, but I've almost only worked in EG &amp;amp; DIS and avoided user written code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this very basic example code:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://pastebin.com/AD5yKuA2" title="http://pastebin.com/AD5yKuA2"&gt;http://pastebin.com/AD5yKuA2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add a single row at the bottom, which should simply display the sum of the 'amount' column. It should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;deal_no&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;cust_no&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;kid&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;amount&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;65465165&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;56165165&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9198191919616161511162&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;65498153&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;51651666&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5191989847987654646565&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;46519899&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18548949&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5161989897686165165161&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;19884958&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;56165199&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6123165486351657678999&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please tell me how to add the final line? I figured I might simply use output belop=sum(belop), but that doesn't seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:21:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-one-summary-row-at-the-bottom/m-p/175995#M45127</guid>
      <dc:creator>EinarRoed</dc:creator>
      <dc:date>2014-10-08T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding one summary row at the bottom</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Adding-one-summary-row-at-the-bottom/m-p/175996#M45128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding sums is not really a table thing, rather a report requirement.&lt;/P&gt;&lt;P&gt;PROC PRINT could do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 10:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Adding-one-summary-row-at-the-bottom/m-p/175996#M45128</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-10-08T10:30:11Z</dc:date>
    </item>
  </channel>
</rss>

