<?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 column total excluding specific rows in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-column-total-excluding-specific-rows/m-p/17702#M3563</link>
    <description>Does anyone know how to modify this code in order to compute totals for each of the columns (ie RBREAK) while excluding specific rows?&lt;BR /&gt;
For example, how would I exclude rows 2 and 4 (ie div in (2,4)) from the column totals?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
proc report data=org nowd contents="Claims" out=test&lt;BR /&gt;
	style(header)=[font_weight=bold]; &lt;BR /&gt;
	options missing='0';&lt;BR /&gt;
	column department div tot_osha tot_nlt tot_lt;&lt;BR /&gt;
	define department /group 'Customer Service' width=18 style(column)={just=l} order=data;&lt;BR /&gt;
	define div / group noprint;&lt;BR /&gt;
	define tot_osha / 'Total' style(column)={background=gold}; &lt;BR /&gt;
	define tot_nlt / 'Non-Lost Time'; &lt;BR /&gt;
	define tot_lt / 'Lost Time'; &lt;BR /&gt;
	compute div;&lt;BR /&gt;
		if div in (1,7,8,9,10,11,12,13) then call define(_row_,"style","style=[font_weight=bold fontsize=3.5]");&lt;BR /&gt;
	endcomp; &lt;BR /&gt;
run;</description>
    <pubDate>Fri, 25 Feb 2011 17:47:44 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2011-02-25T17:47:44Z</dc:date>
    <item>
      <title>proc report column total excluding specific rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-column-total-excluding-specific-rows/m-p/17702#M3563</link>
      <description>Does anyone know how to modify this code in order to compute totals for each of the columns (ie RBREAK) while excluding specific rows?&lt;BR /&gt;
For example, how would I exclude rows 2 and 4 (ie div in (2,4)) from the column totals?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
proc report data=org nowd contents="Claims" out=test&lt;BR /&gt;
	style(header)=[font_weight=bold]; &lt;BR /&gt;
	options missing='0';&lt;BR /&gt;
	column department div tot_osha tot_nlt tot_lt;&lt;BR /&gt;
	define department /group 'Customer Service' width=18 style(column)={just=l} order=data;&lt;BR /&gt;
	define div / group noprint;&lt;BR /&gt;
	define tot_osha / 'Total' style(column)={background=gold}; &lt;BR /&gt;
	define tot_nlt / 'Non-Lost Time'; &lt;BR /&gt;
	define tot_lt / 'Lost Time'; &lt;BR /&gt;
	compute div;&lt;BR /&gt;
		if div in (1,7,8,9,10,11,12,13) then call define(_row_,"style","style=[font_weight=bold fontsize=3.5]");&lt;BR /&gt;
	endcomp; &lt;BR /&gt;
run;</description>
      <pubDate>Fri, 25 Feb 2011 17:47:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-column-total-excluding-specific-rows/m-p/17702#M3563</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2011-02-25T17:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc report column total excluding specific rows</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-column-total-excluding-specific-rows/m-p/17703#M3564</link>
      <description>This idea must be out in the universe -- look at some of the examples at the bottom of this thread -- particularly the most recent ones.&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=13048&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=13048&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 25 Feb 2011 20:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-column-total-excluding-specific-rows/m-p/17703#M3564</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-25T20:11:26Z</dc:date>
    </item>
  </channel>
</rss>

