<?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: Display Numbers between paranthes in Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5953#M2399</link>
    <description>Hi Peter,&lt;BR /&gt;
&lt;BR /&gt;
Thanks, It worked.</description>
    <pubDate>Sun, 06 Jan 2008 12:11:54 GMT</pubDate>
    <dc:creator>MohamedS</dc:creator>
    <dc:date>2008-01-06T12:11:54Z</dc:date>
    <item>
      <title>Display Numbers between paranthes in Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5951#M2397</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
do any one know how to display numbers in report between paranthes i.e.    (455.0)&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Tue, 18 Dec 2007 11:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5951#M2397</guid>
      <dc:creator>MohamedS</dc:creator>
      <dc:date>2007-12-18T11:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display Numbers between paranthes in Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5952#M2398</link>
      <description>there is format negparen&lt;BR /&gt;
which puts negative numbers in parentheses.  Just try[pre]&lt;BR /&gt;
data;                        &lt;BR /&gt;
    valuep = 455.01 ;          &lt;BR /&gt;
    value  = -valuep;          &lt;BR /&gt;
    put value=  negparen11.2 ; &lt;BR /&gt;
    put valuep= negparen11.2 ; &lt;BR /&gt;
run;   [/pre]&lt;BR /&gt;
My SAS log shows [pre]                                  &lt;BR /&gt;
value=(455.01)                    &lt;BR /&gt;
valuep=455.01                     &lt;BR /&gt;
NOTE: The data set WORK......[/pre]&lt;BR /&gt;
&lt;BR /&gt;
If you are unable to make your values negative, in PROC FORMAT try the PICTURE statement to achieve what you need. There is an example in online doc at &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a002473483.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/proc.hlp/a002473483.htm&lt;/A&gt; which you can adapt it to your needs. Something like [pre]&lt;BR /&gt;
 proc format ;&lt;BR /&gt;
    picture parens (round) &lt;BR /&gt;
     low - high = '0,000,000.0)'( prefix='(' ) ;&lt;BR /&gt;
 run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
testing in my SAS log produces [pre]&lt;BR /&gt;
33   %put demo= %sysfunc( max( -12345.67, 1234.5), parens );&lt;BR /&gt;
demo=    (1,234.5)&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Good Luck&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 18 Dec 2007 12:41:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5952#M2398</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-12-18T12:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Display Numbers between paranthes in Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5953#M2399</link>
      <description>Hi Peter,&lt;BR /&gt;
&lt;BR /&gt;
Thanks, It worked.</description>
      <pubDate>Sun, 06 Jan 2008 12:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Display-Numbers-between-paranthes-in-Report/m-p/5953#M2399</guid>
      <dc:creator>MohamedS</dc:creator>
      <dc:date>2008-01-06T12:11:54Z</dc:date>
    </item>
  </channel>
</rss>

