<?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 Report: How to only display Grand Totals of certain columns? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72703#M21068</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Would like to know how to do this in &lt;B&gt;Proc Report.&lt;/B&gt;&lt;BR /&gt;
How to only display Grand Totals of certain columns and to hide some of those Grand Totals that are not needed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a Ton!</description>
    <pubDate>Thu, 05 Feb 2009 11:19:45 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-02-05T11:19:45Z</dc:date>
    <item>
      <title>Proc Report: How to only display Grand Totals of certain columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72703#M21068</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Would like to know how to do this in &lt;B&gt;Proc Report.&lt;/B&gt;&lt;BR /&gt;
How to only display Grand Totals of certain columns and to hide some of those Grand Totals that are not needed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a Ton!</description>
      <pubDate>Thu, 05 Feb 2009 11:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72703#M21068</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-05T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report: How to only display Grand Totals of certain columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72704#M21069</link>
      <description>A search of the SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  using either the website's SEARCH facility or using the Google advanced search argument below yielded matching DOC and technical paper (user community, SUGI, SGF) documents on this topic.&lt;BR /&gt;
&lt;BR /&gt;
Google advanced search argument (site parameter must be in lowercase):&lt;BR /&gt;
proc report grand totals site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 05 Feb 2009 15:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72704#M21069</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-05T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report: How to only display Grand Totals of certain columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72705#M21070</link>
      <description>Hi Lee.,&lt;BR /&gt;
&lt;BR /&gt;
data grocery;&lt;BR /&gt;
   input Sector $ Manager $ Department $ Sales @@;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
se 1 np1 50    se 1 p1 100   se 1 np2 120   se 1 p2 80&lt;BR /&gt;
se 2 np1 40    se 2 p1 300   se 2 np2 220   se 2 p2 70&lt;BR /&gt;
nw 3 np1 60    nw 3 p1 600   nw 3 np2 420   nw 3 p2 30&lt;BR /&gt;
nw 4 np1 45    nw 4 p1 250   nw 4 np2 230   nw 4 p2 73&lt;BR /&gt;
nw 9 np1 45    nw 9 p1 205   nw 9 np2 420   nw 9 p2 76&lt;BR /&gt;
sw 5 np1 53    sw 5 p1 130   sw 5 np2 120   sw 5 p2 50&lt;BR /&gt;
sw 6 np1 40    sw 6 p1 350   sw 6 np2 225   sw 6 p2 80&lt;BR /&gt;
ne 7 np1 90    ne 7 p1 190   ne 7 np2 420   ne 7 p2 86&lt;BR /&gt;
ne 8 np1 200   ne 8 p1 300   ne 8 np2 420   ne 8 p2 125&lt;BR /&gt;
;&lt;BR /&gt;
proc report data=grocery nowd;&lt;BR /&gt;
column manager department sales;&lt;BR /&gt;
define manager / order width=8 'Sales Manager';&lt;BR /&gt;
define sales / analysis sum format=dollar7.2 'Sales';&lt;BR /&gt;
/* break after manager / dol summarize suppress skip; */&lt;BR /&gt;
rbreak after /dol summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Thanks.....</description>
      <pubDate>Fri, 06 Feb 2009 06:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72705#M21070</guid>
      <dc:creator>venkatesh</dc:creator>
      <dc:date>2009-02-06T06:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report: How to only display Grand Totals of certain columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72706#M21071</link>
      <description>Hi:&lt;BR /&gt;
  Here are some other samples, which use SASHELP.SHOES and may or may not be what you want to do. One example "hides" totals  for 2 columns and the other example uses NOPRINT and the hiding technique. Note that if missing is not set to display as space, then you will see '.' in the grand total line.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                 &lt;BR /&gt;
options missing = ' ';&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  title 'Blank Out Total for Inventory and Returns';&lt;BR /&gt;
  column region sales inventory returns both;&lt;BR /&gt;
  define region / group;&lt;BR /&gt;
  define sales / sum 'Sales';&lt;BR /&gt;
  define inventory / sum;&lt;BR /&gt;
  define returns / sum;&lt;BR /&gt;
  define both / computed 'Inventory minus Returns' f=dollar14.;&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
  compute both;&lt;BR /&gt;
    both = inventory.sum - returns.sum ;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute after;&lt;BR /&gt;
    region = 'Grand Total';&lt;BR /&gt;
    inventory.sum = .;&lt;BR /&gt;
    returns.sum = .;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
                                                          &lt;BR /&gt;
options missing = ' ';&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  title 'Hide Inventory Column, but Use It';&lt;BR /&gt;
  column region sales inventory returns both;&lt;BR /&gt;
  define region / group;&lt;BR /&gt;
  define sales / sum 'Sales';&lt;BR /&gt;
  define inventory / sum noprint;&lt;BR /&gt;
  define returns / sum;&lt;BR /&gt;
  define both / computed 'Inventory minus Returns' f=dollar14.;&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
  compute both;&lt;BR /&gt;
    both = inventory.sum - returns.sum ;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute after;&lt;BR /&gt;
    region = 'Grand Total';&lt;BR /&gt;
    inventory.sum = .;&lt;BR /&gt;
    returns.sum = .;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 06 Feb 2009 17:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-How-to-only-display-Grand-Totals-of-certain-columns/m-p/72706#M21071</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-02-06T17:18:49Z</dc:date>
    </item>
  </channel>
</rss>

