<?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 Proc Summary with Grand Total in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313258#M68039</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following proc summary.&amp;nbsp; How do I make a grand total at the end of the rows?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc summary data=inv3 nway; &lt;BR /&gt;class dt rep supe cur_pd;&lt;BR /&gt;output out=inventory_counts (drop=_type_ rename=(_freq_= TL_INVENTORY));&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 21:00:08 GMT</pubDate>
    <dc:creator>ertweety</dc:creator>
    <dc:date>2016-11-21T21:00:08Z</dc:date>
    <item>
      <title>Proc Summary with Grand Total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313258#M68039</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following proc summary.&amp;nbsp; How do I make a grand total at the end of the rows?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc summary data=inv3 nway; &lt;BR /&gt;class dt rep supe cur_pd;&lt;BR /&gt;output out=inventory_counts (drop=_type_ rename=(_freq_= TL_INVENTORY));&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 21:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313258#M68039</guid>
      <dc:creator>ertweety</dc:creator>
      <dc:date>2016-11-21T21:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary with Grand Total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313266#M68041</link>
      <description>&lt;P&gt;change from:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;proc &lt;STRONG&gt;summary&lt;/STRONG&gt; data=inv3 &lt;STRONG&gt;nway&lt;/STRONG&gt;; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;proc &lt;STRONG&gt;means&lt;/STRONG&gt; data=inv3 &amp;nbsp;&lt;STRONG&gt;types (0 &amp;nbsp;16);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;where 0 means the grand total&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and 16 = 2**4 - as you have 4 class variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 21:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313266#M68041</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-21T21:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary with Grand Total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313267#M68042</link>
      <description>&lt;P&gt;Probably easier to do this in PROC TABULATE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get grand totals and a more formatted table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 21:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313267#M68042</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-21T21:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Summary with Grand Total</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313591#M68171</link>
      <description>&lt;P&gt;figured it out.&amp;nbsp; Just did a data step after the summary where it sums the 4 columns&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Summary-with-Grand-Total/m-p/313591#M68171</guid>
      <dc:creator>ertweety</dc:creator>
      <dc:date>2016-11-22T20:49:14Z</dc:date>
    </item>
  </channel>
</rss>

