<?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: Suppress GrandTotal in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Suppress-GrandTotal/m-p/61318#M7310</link>
    <description>Hi:&lt;BR /&gt;
  With PROC PRINT, the SUM statement does both subtotals and grand totals and you do not have the ability to get one without getting the other. (Without a BY statement, you would only get grand totals).&lt;BR /&gt;
 &lt;BR /&gt;
  However, PROC REPORT does allow you to request either subtotals or grand totals independently of each other. The converted code would be something like what's shown below.&lt;BR /&gt;
 &lt;BR /&gt;
  You'll have to read about the DEFINE statement and various USAGE options. For more information on PROC REPORT, I recommend:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf&lt;/A&gt;&lt;BR /&gt;
                                    &lt;BR /&gt;
 I only included a DEFINE statement for CO_ID, so that the BREAK statement could be used. I was not sure what usage you would want for PED (DISPLAY?? ORDER??) If you &lt;BR /&gt;
-wanted- grand totals, you would explicitly have to use an RBREAK statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data = b2 nowd;&lt;BR /&gt;
  column co_id Ped Recordcnt Wellcnt Ownercnt Checkcnt WIcnt WInetamt RIcnt RInetamt;&lt;BR /&gt;
  define co_id / order;&lt;BR /&gt;
  break after co_id/summarize skip;&lt;BR /&gt;
  title Detail Sales History Data -- Statistics ;&lt;BR /&gt;
  title2 (Excludes Deleted Interest Owner);&lt;BR /&gt;
run ; &lt;BR /&gt;
[/pre]</description>
    <pubDate>Mon, 03 Aug 2009 16:42:58 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-08-03T16:42:58Z</dc:date>
    <item>
      <title>Suppress GrandTotal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Suppress-GrandTotal/m-p/61317#M7309</link>
      <description>The following code report prints fine with subtotals and a grandtotal -- however, I don't want the grandtotal to print/display -- what code will suppress grand total line?&lt;BR /&gt;
&lt;BR /&gt;
proc print data = b2 uniform label ;&lt;BR /&gt;
 by co_id ;&lt;BR /&gt;
 id co_id ;&lt;BR /&gt;
 var Ped Recordcnt Wellcnt Ownercnt Checkcnt WIcnt WInetamt RIcnt RInetamt;&lt;BR /&gt;
 sum Recordcnt Wellcnt Ownercnt Checkcnt WIcnt WInetamt RIcnt RInetamt;&lt;BR /&gt;
 *format Amount Comma15.2 ;&lt;BR /&gt;
 title Detail Sales History Data -- Statistics ;&lt;BR /&gt;
 title2 (Excludes Deleted Interest Owner);&lt;BR /&gt;
run ;</description>
      <pubDate>Mon, 03 Aug 2009 16:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Suppress-GrandTotal/m-p/61317#M7309</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-03T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress GrandTotal</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Suppress-GrandTotal/m-p/61318#M7310</link>
      <description>Hi:&lt;BR /&gt;
  With PROC PRINT, the SUM statement does both subtotals and grand totals and you do not have the ability to get one without getting the other. (Without a BY statement, you would only get grand totals).&lt;BR /&gt;
 &lt;BR /&gt;
  However, PROC REPORT does allow you to request either subtotals or grand totals independently of each other. The converted code would be something like what's shown below.&lt;BR /&gt;
 &lt;BR /&gt;
  You'll have to read about the DEFINE statement and various USAGE options. For more information on PROC REPORT, I recommend:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/v82/techreport_p258.pdf&lt;/A&gt;&lt;BR /&gt;
                                    &lt;BR /&gt;
 I only included a DEFINE statement for CO_ID, so that the BREAK statement could be used. I was not sure what usage you would want for PED (DISPLAY?? ORDER??) If you &lt;BR /&gt;
-wanted- grand totals, you would explicitly have to use an RBREAK statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data = b2 nowd;&lt;BR /&gt;
  column co_id Ped Recordcnt Wellcnt Ownercnt Checkcnt WIcnt WInetamt RIcnt RInetamt;&lt;BR /&gt;
  define co_id / order;&lt;BR /&gt;
  break after co_id/summarize skip;&lt;BR /&gt;
  title Detail Sales History Data -- Statistics ;&lt;BR /&gt;
  title2 (Excludes Deleted Interest Owner);&lt;BR /&gt;
run ; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 03 Aug 2009 16:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Suppress-GrandTotal/m-p/61318#M7310</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-08-03T16:42:58Z</dc:date>
    </item>
  </channel>
</rss>

