<?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: Formatting &amp;quot;positive&amp;quot; zero values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45941#M12159</link>
    <description>Yes I apologize. There is supposed to be a comma after Payments. The date appears at the top of the report going across.&lt;BR /&gt;
&lt;BR /&gt;
Payments  *f=NegDol.*[style=[foreground=difffmt.]] ,&lt;BR /&gt;
&lt;BR /&gt;
Dte={label=' ' s=[background=black foreground=white font_face=times]}&lt;BR /&gt;
 / box={label=_Page_ s=[just=c background=white foreground=black font_weight=bold font_face=times]};</description>
    <pubDate>Tue, 07 Dec 2010 18:20:45 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-12-07T18:20:45Z</dc:date>
    <item>
      <title>Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45935#M12153</link>
      <description>I currently have a format that makes anything with a negative value red with ( ) around them. For the most part this works, but every once in a while there is a "positive" zero value that gets highlighted red. I am not sure why this is happening. Below is a sample of the code.&lt;BR /&gt;
&lt;BR /&gt;
Example of Format:&lt;BR /&gt;
*********************************;&lt;BR /&gt;
proc format;&lt;BR /&gt;
 value difffmt &lt;BR /&gt;
	-100000000 - 0.0001 = 'red';&lt;BR /&gt;
 picture NegDol (multilabel)&lt;BR /&gt;
	-100000000 - 0.00001   = '000,000,000,000)' (prefix='($')&lt;BR /&gt;
	0.00001 - 100000000000 = '000,000,000,000'   (prefix='$'); &lt;BR /&gt;
&lt;BR /&gt;
Example of what's being formatted:&lt;BR /&gt;
 Prcnt_Balance_Growth  *f=percent7.2* [style=[foreground=difffmt.]]</description>
      <pubDate>Tue, 07 Dec 2010 14:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45935#M12153</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-07T14:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45936#M12154</link>
      <description>Hello Alana,&lt;BR /&gt;
&lt;BR /&gt;
Could you please give an example on this format usage? What I noticed is that the first range definition includes 0:&lt;BR /&gt;
[pre]&lt;BR /&gt;
-100000000 - 0.0001 = 'red'; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
To exclude 0 it should be changed to &lt;BR /&gt;
[pre]&lt;BR /&gt;
-100000000 - -0.0001 = 'red'; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
So the final format definition I think should be like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc format;&lt;BR /&gt;
value difffmt &lt;BR /&gt;
-100000000 - -0.0001 = 'red';&lt;BR /&gt;
picture NegDol (multilabel)&lt;BR /&gt;
-100000000 - -0.00001 = '000,000,000,000)' (prefix='($')&lt;BR /&gt;
0 - 100000000000 = '000,000,000,000' (prefix='$'); &lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Tue, 07 Dec 2010 15:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45936#M12154</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-12-07T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45937#M12155</link>
      <description>Sure. I guess I should mention that the red 0 values without the ( ) are percentages. Here's more code. Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
table &lt;BR /&gt;
Total_Beginning_Open_accts      *f=negparen20.  &lt;BR /&gt;
 New_accts		*f=negparen20.   &lt;BR /&gt;
 Converted_Accts		*f=negparen20.   &lt;BR /&gt;
 ReOpened_Accts		*f=negparen20.   &lt;BR /&gt;
 Account_Attrition		*f=negparen20.*[style=[foreground=red]]&lt;BR /&gt;
 Total_Ending_Open_Accts	*f=negparen20.   &lt;BR /&gt;
 Prcnt_Acct_Attrition		*f=percent10.2* [style=[foreground=difffmt.]]  &lt;BR /&gt;
 Beginning_Balance		*f=NegDol.</description>
      <pubDate>Tue, 07 Dec 2010 15:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45937#M12155</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-07T15:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45938#M12156</link>
      <description>Hi:&lt;BR /&gt;
  This looks like PROC TABULATE code. But you have only posted part of your TABLE statement. Are all of these variables in the ROW dimension?? Are you using any formats in the COL dimension??? Could you post ALL your code, including the ODS "sandwich" statements so we can see your destination of interest. Also, do you have any options to control missing values??? &lt;BR /&gt;
OPTIONS MISSING=0; or MISSTEXT='0'??? in your code??&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 07 Dec 2010 16:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45938#M12156</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-12-07T16:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45939#M12157</link>
      <description>Here's the whole Proc Tabulate with the ODS top and bottoms. &lt;BR /&gt;
&lt;BR /&gt;
options orientation=landscape nobyline ;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods results=off;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
ODS PDF file='C:\Code Output.PDF'  style=PrinterSmaller  bookmarklist=hide   bookmarkgen=yes;&lt;BR /&gt;
&lt;BR /&gt;
proc tabulate s=[font_size=3] data=DMYM.Output_BL_CB  f=6.2 S=[foreground=black] NOSEPS missing;&lt;BR /&gt;
     title  color=black 'Solutions';&lt;BR /&gt;
     title2 color=black "Monthly Balance - #byval1";&lt;BR /&gt;
	 footnote1 color=black "^S={font_style=italic}" '* Note: Volume, Otherwise.';&lt;BR /&gt;
*	 footnote1 color=black "^S={font_style=italic}" '*Note: Fields marked.';&lt;BR /&gt;
     by  &amp;amp;BL_CB notsorted;   &lt;BR /&gt;
     class  Dte;&lt;BR /&gt;
&lt;BR /&gt;
     classlev Dte/S=[background=white foreground=black font_size=3 font_face=times];&lt;BR /&gt;
&lt;BR /&gt;
     var   Total   N_accts  C_Accts   RO_Accts   Account_F   &lt;BR /&gt;
           Total_Ending   Prcnt_F   Space  A_Accts   Act_Rate   Balance   Payments;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 table Total		*f=negparen20.  &lt;BR /&gt;
           N_accts						*f=negparen20.   &lt;BR /&gt;
           C_Accts					*f=negparen20.   &lt;BR /&gt;
           RO_Accts					*f=negparen20.   &lt;BR /&gt;
           Account_F				*f=negparen20.*[style=[foreground=red]]&lt;BR /&gt;
           Total_Ending			*f=negparen20.   &lt;BR /&gt;
           Prcnt_F				*f=percent10.2* [style=[foreground=difffmt.]]  &lt;BR /&gt;
           Space    &lt;BR /&gt;
           A_Accts						*f=negparen20.   &lt;BR /&gt;
           Act_Rate					*f=percent10.2   &lt;BR /&gt;
           Space   &lt;BR /&gt;
           Balance				*f=NegDol.  &lt;BR /&gt;
           Payments							*f=NegDol.*[style=[foreground=difffmt.]] &lt;BR /&gt;
Dte={label=' ' s=[background=black foreground=white font_face=times]}&lt;BR /&gt;
         / box={label=_Page_ s=[just=c background=white foreground=black font_weight=bold font_face=times]};&lt;BR /&gt;
&lt;BR /&gt;
        keylabel sum = ' ';&lt;BR /&gt;
quit;&lt;BR /&gt;
 title;&lt;BR /&gt;
 footnote;&lt;BR /&gt;
&lt;BR /&gt;
ODS PDF close;&lt;BR /&gt;
ods listing;</description>
      <pubDate>Tue, 07 Dec 2010 17:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45939#M12157</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-07T17:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45940#M12158</link>
      <description>Hi:&lt;BR /&gt;
  Is there a comma missing in your TABLE statement??? Does DTE variable appear in a ROW underneath PAYMENTS variable or does DTE appear in the COLUMNS of the TABLE???&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 07 Dec 2010 18:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45940#M12158</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-12-07T18:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45941#M12159</link>
      <description>Yes I apologize. There is supposed to be a comma after Payments. The date appears at the top of the report going across.&lt;BR /&gt;
&lt;BR /&gt;
Payments  *f=NegDol.*[style=[foreground=difffmt.]] ,&lt;BR /&gt;
&lt;BR /&gt;
Dte={label=' ' s=[background=black foreground=white font_face=times]}&lt;BR /&gt;
 / box={label=_Page_ s=[just=c background=white foreground=black font_weight=bold font_face=times]};</description>
      <pubDate>Tue, 07 Dec 2010 18:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45941#M12159</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-07T18:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45942#M12160</link>
      <description>I am still intrigued by part of the original post e.g. "positive zero".  since, as SPR pointed out, your 'red' range includes 0.  There is likely some rounding involved as well as the range issue.  Another specification of the range could be:&lt;BR /&gt;
[pre]-100000000 - &amp;lt; 0 = 'red';[/pre]&lt;BR /&gt;
Depending on how tight your tolerances are, you may also want to take a look at the FUZZ option.</description>
      <pubDate>Tue, 07 Dec 2010 18:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45942#M12160</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-12-07T18:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45943#M12161</link>
      <description>Another thing I forgot to mention is that, the "positive zeros" are percentages. They have been rounded to the thousdands. Hope that helps even more.</description>
      <pubDate>Tue, 07 Dec 2010 19:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45943#M12161</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-07T19:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45944#M12162</link>
      <description>Alana,&lt;BR /&gt;
&lt;BR /&gt;
I did not understand. Did you dry my or ArtC's suggestion?&lt;BR /&gt;
&lt;BR /&gt;
SPR</description>
      <pubDate>Tue, 07 Dec 2010 19:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45944#M12162</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2010-12-07T19:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45945#M12163</link>
      <description>I agree with Art. Have you tried this:&lt;BR /&gt;
Another specification of the range could be:&lt;BR /&gt;
&lt;BR /&gt;
-100000000 -&amp;lt; 0 = 'red';&lt;BR /&gt;
 &lt;BR /&gt;
in your format???&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 07 Dec 2010 19:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45945#M12163</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-12-07T19:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting "positive" zero values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45946#M12164</link>
      <description>Hi.&lt;BR /&gt;
I think you need another option ( Fuzz=.00001 ) to avoid to conflict with labels.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 13 Dec 2010 01:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Formatting-quot-positive-quot-zero-values/m-p/45946#M12164</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-12-13T01:07:51Z</dc:date>
    </item>
  </channel>
</rss>

