<?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 Numerical transformation in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/542798#M7609</link>
    <description>&lt;P&gt;&lt;SPAN&gt;How to transform &lt;SPAN&gt;negative value&lt;/SPAN&gt; of a SAS numeric variable into parenthesized accounting amount, for example -7.8 into ($7.8)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2019 14:37:13 GMT</pubDate>
    <dc:creator>cx2019</dc:creator>
    <dc:date>2019-03-13T14:37:13Z</dc:date>
    <item>
      <title>Numerical transformation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/542798#M7609</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to transform &lt;SPAN&gt;negative value&lt;/SPAN&gt; of a SAS numeric variable into parenthesized accounting amount, for example -7.8 into ($7.8)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 14:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/542798#M7609</guid>
      <dc:creator>cx2019</dc:creator>
      <dc:date>2019-03-13T14:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical transformation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/542816#M7612</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266029"&gt;@cx2019&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;How to transform &lt;SPAN&gt;negative value&lt;/SPAN&gt; of a SAS numeric variable into parenthesized accounting amount, for example -7.8 into ($7.8)&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Personally I wouldn't transform any value as that makes it hard to do arithmetic as needed.&lt;/P&gt;
&lt;P&gt;Unless you really think that you need the $ for clarity I would use the NEGPAREN format.&lt;/P&gt;
&lt;P&gt;If you actually really need a both parentheses and the dollar sign you need a custom format similar to below:&lt;/P&gt;
&lt;PRE&gt;proc format libarary=work;
picture dollarparen
low -&amp;lt;0 = '000009.90)' (prefix='($')
0-high  = '000009.90'  (prefix='$')
;
run;

data example;
   input x;
datalines;
123.4
-7.8
0.04
-1234.56
;
run;
proc print data=example;
   format x dollarparen.;
run;&lt;/PRE&gt;
&lt;P&gt;In the format definition the nines and zeroes are digit selectors the&amp;nbsp; 9 before the decimal will always appear as a 0 value&amp;nbsp;if nothing assigned in that position. Add leading zeroes if you need to display longer values.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 14:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/542816#M7612</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-13T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical transformation</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/543390#M7698</link>
      <description>&lt;P&gt;&amp;nbsp;Is there any way to add a suffix to a number directly, not to use&amp;nbsp;&lt;FONT&gt;&amp;nbsp;'000009.90)'&lt;/FONT&gt; ?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numerical-transformation/m-p/543390#M7698</guid>
      <dc:creator>cx2019</dc:creator>
      <dc:date>2019-03-15T03:05:24Z</dc:date>
    </item>
  </channel>
</rss>

