<?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: Total show 0 with missings in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30030#M4539</link>
    <description>Hi, Olivier:&lt;BR /&gt;
  That's a good solution. This is another that doesn't require a compute block, only MISSING in the PROC REPORT statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
	SET sashelp.class ;&lt;BR /&gt;
	dummyVar = . ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
    &lt;BR /&gt;
options missing=0;&lt;BR /&gt;
   &lt;BR /&gt;
PROC REPORT DATA = work.test NOWD missing;&lt;BR /&gt;
	COLUMNS _ALL_ ;&lt;BR /&gt;
	DEFINE dummyVar / ANALYSIS SUM ;&lt;BR /&gt;
	RBREAK AFTER / SUMMARIZE ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
 &lt;BR /&gt;
  options missing=.;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
There's usually more than one way to do something in SAS!&lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 09 Jul 2008 12:47:59 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-07-09T12:47:59Z</dc:date>
    <item>
      <title>Total show 0 with missings</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30027#M4536</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In a proc report the data is all missing. I would like to show it also as missing, but in the total at the end of the proc report. I would like to show a '0' instead of missing.&lt;BR /&gt;
&lt;BR /&gt;
How do I do this?&lt;BR /&gt;
&lt;BR /&gt;
Thierry</description>
      <pubDate>Wed, 09 Jul 2008 09:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30027#M4536</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-09T09:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Total show 0 with missings</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30028#M4537</link>
      <description>Hi Thierry.&lt;BR /&gt;
You just have to add a COMPUTE block to your report procedure to "correct" the sum after computing.&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
	SET sashelp.class ;&lt;BR /&gt;
	dummyVar = . ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
PROC REPORT DATA = work.test NOWD ;&lt;BR /&gt;
	COLUMNS _ALL_ ;&lt;BR /&gt;
	DEFINE dummyVar / ANALYSIS SUM ;&lt;BR /&gt;
	RBREAK AFTER / SUMMARIZE ;&lt;BR /&gt;
	COMPUTE AFTER ;&lt;BR /&gt;
		dummyVar.sum = COALESCE(dummyVar.sum, 0) ; /* if you're using SAS 9 */&lt;BR /&gt;
		/* IF MISSING(dummyVar.sum) THEN dummyVar.sum = 0 ; */ /* in previous versions */&lt;BR /&gt;
	ENDCOMP ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Wed, 09 Jul 2008 09:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30028#M4537</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-07-09T09:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Total show 0 with missings</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30029#M4538</link>
      <description>Hi Oliver,&lt;BR /&gt;
&lt;BR /&gt;
This works great!!!&lt;BR /&gt;
Thanks alot!&lt;BR /&gt;
&lt;BR /&gt;
Thierry</description>
      <pubDate>Wed, 09 Jul 2008 09:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30029#M4538</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-09T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Total show 0 with missings</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30030#M4539</link>
      <description>Hi, Olivier:&lt;BR /&gt;
  That's a good solution. This is another that doesn't require a compute block, only MISSING in the PROC REPORT statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
	SET sashelp.class ;&lt;BR /&gt;
	dummyVar = . ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
    &lt;BR /&gt;
options missing=0;&lt;BR /&gt;
   &lt;BR /&gt;
PROC REPORT DATA = work.test NOWD missing;&lt;BR /&gt;
	COLUMNS _ALL_ ;&lt;BR /&gt;
	DEFINE dummyVar / ANALYSIS SUM ;&lt;BR /&gt;
	RBREAK AFTER / SUMMARIZE ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
 &lt;BR /&gt;
  options missing=.;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
There's usually more than one way to do something in SAS!&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 09 Jul 2008 12:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Total-show-0-with-missings/m-p/30030#M4539</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-09T12:47:59Z</dc:date>
    </item>
  </channel>
</rss>

