<?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 FORMAT missing value in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399312#M19465</link>
    <description>&lt;P&gt;So you have two problems with your picture format.&lt;/P&gt;
&lt;P&gt;In the main range you are causing zero to print as blanks.&lt;/P&gt;
&lt;P&gt;In the other range you didn't tell it that you want it to treat zero in the picture as the literal zero digit instead of a place holder for digits in the answer.&lt;/P&gt;
&lt;P&gt;Try this little data step with your current format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  do x=-2,.,0,2 ;
    put '|' x test_fmt11. '| ' x= ;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is an updated picture format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture test_fmt
 low-high = '000,000,009'
 other =  '0' (noedit)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or why not just use a normal format instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value test_fmt
 low-high = [comma11.]
 other =  '          0' 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Sep 2017 19:22:59 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-09-27T19:22:59Z</dc:date>
    <item>
      <title>PROC FORMAT missing value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399297#M19463</link>
      <description>&lt;P&gt;Proc Tabulate used to display&amp;nbsp;zero's&amp;nbsp;but after applying a format, zero's are now replaced by a blank cell.&amp;nbsp; How do I get it display '0' again?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** test zero;&lt;BR /&gt;
proc format;
picture test_fmt
 low-high = '000,000,000'
 other =  '0' /* Is this the correct way to indicate 0 in place for missing? */
;
run;

data test;
set sashelp.shoes;
if region = 'Asia' then returns = 0;
run;

proc tabulate data=test;  
  where region in ('Asia', 'Canada') and product in ('Boot');
  class product region;
  var sales returns ;
  table (region all),
        ALL * n
	All='No.(%)'*(sales returns) * (sum * f=test_fmt. mean) 
        / ROW=FLOAT RTS=22 MISSTEXT='0' 
	;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 18:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399297#M19463</guid>
      <dc:creator>lin39</dc:creator>
      <dc:date>2017-09-27T18:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT missing value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399308#M19464</link>
      <description>&lt;P&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;picture test_fmt&lt;BR /&gt; low&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;high &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'000,000,009'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;. &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="token string"&gt;'0'&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;Maybe what you want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;But perhaps a full description of what you are attempting would help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;If the only purpose is to prevent the sum showing as 0.00 for the misstext=0 &amp;nbsp;value then use one of the BEST. , or if you want commas, Comma11. format for the sum statistic. Both will suppress the trailing zeroes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 19:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399308#M19464</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-27T19:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT missing value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399312#M19465</link>
      <description>&lt;P&gt;So you have two problems with your picture format.&lt;/P&gt;
&lt;P&gt;In the main range you are causing zero to print as blanks.&lt;/P&gt;
&lt;P&gt;In the other range you didn't tell it that you want it to treat zero in the picture as the literal zero digit instead of a place holder for digits in the answer.&lt;/P&gt;
&lt;P&gt;Try this little data step with your current format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  do x=-2,.,0,2 ;
    put '|' x test_fmt11. '| ' x= ;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is an updated picture format.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture test_fmt
 low-high = '000,000,009'
 other =  '0' (noedit)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or why not just use a normal format instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value test_fmt
 low-high = [comma11.]
 other =  '          0' 
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 19:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399312#M19465</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-27T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FORMAT missing value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399336#M19466</link>
      <description>&lt;P&gt;Thanks for suggesting the cool data step to try with my format.&amp;nbsp; You guys solved my problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 20:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-FORMAT-missing-value/m-p/399336#M19466</guid>
      <dc:creator>lin39</dc:creator>
      <dc:date>2017-09-27T20:48:31Z</dc:date>
    </item>
  </channel>
</rss>

