<?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 negative currency values in paranthesis in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452096#M29178</link>
    <description>&lt;P&gt;Hi, Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried that. It is for numeric values only. My values need to be displayed with a preceding $ sign.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 20:13:48 GMT</pubDate>
    <dc:creator>VarunD</dc:creator>
    <dc:date>2018-04-06T20:13:48Z</dc:date>
    <item>
      <title>display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452093#M29176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How do I display negative currency values in SAS list report in paranthesis ? Also, preferably with a red text.&lt;/P&gt;&lt;P&gt;I could do it easily in excel by creating a custom format but can't find my way around it in SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation,&lt;BR /&gt;Varun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 20:08:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452093#M29176</guid>
      <dc:creator>VarunD</dc:creator>
      <dc:date>2018-04-06T20:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452095#M29177</link>
      <description>&lt;P&gt;try the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000205173.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000205173.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;NEGPAREN&lt;SPAN class="emph"&gt;w&lt;/SPAN&gt;.&lt;SPAN class="emph"&gt;d&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Format&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 20:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452095#M29177</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-04-06T20:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452096#M29178</link>
      <description>&lt;P&gt;Hi, Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried that. It is for numeric values only. My values need to be displayed with a preceding $ sign.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 20:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452096#M29178</guid>
      <dc:creator>VarunD</dc:creator>
      <dc:date>2018-04-06T20:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452101#M29180</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;STRONG&gt;nlmny10.&lt;/STRONG&gt;&amp;nbsp;or &lt;STRONG&gt;rstdodn10.&lt;/STRONG&gt; format, this should work.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 20:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452101#M29180</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-06T20:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452106#M29181</link>
      <description>&lt;P&gt;Numeric formats can have a $ sign. I suspect here you may need to roll your own. I think for the colour aspect, it will need some sort of styling elsewhere, but the negative value with parenthesis is probably a picture format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194984"&gt;@VarunD&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tried that. It is for numeric values only. My values need to be displayed with a preceding $ sign.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 20:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452106#M29181</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-06T20:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452112#M29182</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Try&amp;nbsp;&lt;STRONG&gt;nlmny10.&lt;/STRONG&gt;&amp;nbsp;or &lt;STRONG&gt;rstdodn10.&lt;/STRONG&gt; format, this should work.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;may need to add some decimals if you want them to the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Text color is going to be ODS style dependent though color overrides are available in report procedures such as Proc Print, Report and tabulate.&lt;/P&gt;
&lt;P&gt;Example formatting a text color based on the numeric value:&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value agecolor
11='red'
12='pink'
13='blue'
14='orange'
other='black'
;
run;

proc print data=sashelp.class;
   var age /style=[foreground=agecolor.];
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 22:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452112#M29182</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-06T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452277#M29183</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194984"&gt;@VarunD&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi, Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already tried that. It is for numeric values only. My values need to be displayed with a preceding $ sign.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Below code a combination of what others wrote already. You&amp;nbsp;will still have to tweak it a bit but it should point you into the right direction.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  do value=-150 to 150 by 50;
    output;
  end;
  stop;
run;

proc format library=work;
value currcol
  low-&amp;lt;0  ='red'
  0       ='green'
  other   ='black'
  ;
picture myp(default=10)
  low-0='00009)'(prefix='( $')
  other='00009'(prefix='$')
  ;
run;

proc print data=have;
   format value myp.;
   var value /style=[foreground=currcol.];
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 92px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19685i89B260FAC6F563BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2018 02:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452277#M29183</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-04-08T02:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: display negative currency values in paranthesis</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452568#M29198</link>
      <description>Thanks a lot. This worked for displaying the negative values in parenthesis.</description>
      <pubDate>Mon, 09 Apr 2018 17:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/display-negative-currency-values-in-paranthesis/m-p/452568#M29198</guid>
      <dc:creator>VarunD</dc:creator>
      <dc:date>2018-04-09T17:20:09Z</dc:date>
    </item>
  </channel>
</rss>

