<?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: proc report use of summary data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-use-of-summary-data/m-p/5721#M2305</link>
    <description>Hi:&lt;BR /&gt;
  I do not believe that what you want to do is possible. Your best bet for help is to contact Tech Support for possible other approaches (like a DATA _NULL_ report, or making 2 passes through the data. &lt;BR /&gt;
&lt;BR /&gt;
If PROC REPORT is doing the BREAK on the summary, you cannot suppress the break conditionally. If you are writing out a custom break line, you cannot execute the LINE statment conditionally -- you can only set a text string whose value is set conditionally:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute after brkvar;&lt;BR /&gt;
  if sales.sum = 0 then text_str = ' ';&lt;BR /&gt;
    else text_str = 'Sales: '||put(sales.sum,dollar14.);&lt;BR /&gt;
  line text_str $char50.;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
in which case SOMETHING is still being written at the break -- but not being completely suppressed.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 27 Nov 2007 20:36:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-11-27T20:36:11Z</dc:date>
    <item>
      <title>proc report use of summary data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-use-of-summary-data/m-p/5720#M2304</link>
      <description>I am working with proc report to summarize a large amount of data.  When the summary line summarizes to zero I would like to omit that line (still using proc report).  Is this possible?&lt;BR /&gt;
&lt;BR /&gt;
I have tried ommitting where line equals zero but this does not include all data in the final output.</description>
      <pubDate>Tue, 27 Nov 2007 19:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-use-of-summary-data/m-p/5720#M2304</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-27T19:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc report use of summary data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-use-of-summary-data/m-p/5721#M2305</link>
      <description>Hi:&lt;BR /&gt;
  I do not believe that what you want to do is possible. Your best bet for help is to contact Tech Support for possible other approaches (like a DATA _NULL_ report, or making 2 passes through the data. &lt;BR /&gt;
&lt;BR /&gt;
If PROC REPORT is doing the BREAK on the summary, you cannot suppress the break conditionally. If you are writing out a custom break line, you cannot execute the LINE statment conditionally -- you can only set a text string whose value is set conditionally:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute after brkvar;&lt;BR /&gt;
  if sales.sum = 0 then text_str = ' ';&lt;BR /&gt;
    else text_str = 'Sales: '||put(sales.sum,dollar14.);&lt;BR /&gt;
  line text_str $char50.;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
in which case SOMETHING is still being written at the break -- but not being completely suppressed.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 27 Nov 2007 20:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-use-of-summary-data/m-p/5721#M2305</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-11-27T20:36:11Z</dc:date>
    </item>
  </channel>
</rss>

