<?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: Is it possible in Proc Print to put the sum at top of table? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503799#M134687</link>
    <description>&lt;P&gt;How I wish I saved the very demo by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;in one of his posts for a very similar question using proc tabulate. I will wait if he responds&lt;/P&gt;</description>
    <pubDate>Fri, 12 Oct 2018 17:01:35 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-10-12T17:01:35Z</dc:date>
    <item>
      <title>Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503785#M134676</link>
      <description>&lt;P&gt;Expecting either a quick and simple answer or a quick and simple&amp;nbsp;no...can you put the sum row&amp;nbsp;as row 1 on the table? Not a big deal but would make my life marginally easier if&amp;nbsp;I could :D.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advanced. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 16:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503785#M134676</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-10-12T16:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503796#M134685</link>
      <description>I don't believe so, but PROC REPORT can do that.</description>
      <pubDate>Fri, 12 Oct 2018 16:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503796#M134685</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-12T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503797#M134686</link>
      <description>What I expected, thanks Reeza.</description>
      <pubDate>Fri, 12 Oct 2018 17:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503797#M134686</guid>
      <dc:creator>CharlesFowler72</dc:creator>
      <dc:date>2018-10-12T17:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503799#M134687</link>
      <description>&lt;P&gt;How I wish I saved the very demo by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;in one of his posts for a very similar question using proc tabulate. I will wait if he responds&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 17:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503799#M134687</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-12T17:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503802#M134689</link>
      <description>PROC TABULATE is relatively easy, just put the ALL before the variable name.</description>
      <pubDate>Fri, 12 Oct 2018 17:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503802#M134689</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-12T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503803#M134690</link>
      <description>&lt;P&gt;is that all? really?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 17:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503803#M134690</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-12T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible in Proc Print to put the sum at top of table?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503804#M134691</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
class sex;
var age;
table (All='Both Sexes' Sex='') , age*MEAN=''*f=8.1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All before SEX means the total is at the top. Move all after and it's at the bottom. IN this case I used Mean, but you could replace that with SUM for a different report.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=sashelp.class;
class sex;
var age;
table (Sex='' All='Both Sexes' ) , age*MEAN=''*f=8.1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The biggest difference is that PROC TABULATE is a summary procedure, where it summarizes the data. Whereas REPORT and PRINT are more used to display row level information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 17:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-it-possible-in-Proc-Print-to-put-the-sum-at-top-of-table/m-p/503804#M134691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-12T17:08:30Z</dc:date>
    </item>
  </channel>
</rss>

