<?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 Print negative number in RED - E-mail in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247173#M15199</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to print the negative numbers in RED text and send the contents to my email id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to print numbers in the body of the email using proc report but loosing the red color logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please share the style or format i need to apply to get the negative numbers in red color on the email body&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bunch of percentages/dollar values to keep it simple for the users i have created a simple version of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input @1 percent;&lt;BR /&gt;datalines;&lt;BR /&gt;10.12&lt;BR /&gt;-10.30&lt;BR /&gt;20.3&lt;BR /&gt;-40.30&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;title "";&lt;BR /&gt;FILENAME NOTE EMAIL&lt;BR /&gt;TO=("user@gmail.com")&lt;BR /&gt;SUBJECT ="DAILY"&lt;BR /&gt;type="text/html"&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;ods html body=note;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=TEST;&lt;BR /&gt;COL percent;&lt;BR /&gt;DEFINE percent / display&amp;nbsp;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;ODS HTML CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2016 11:06:53 GMT</pubDate>
    <dc:creator>Praveen1</dc:creator>
    <dc:date>2016-02-01T11:06:53Z</dc:date>
    <item>
      <title>Print negative number in RED - E-mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247173#M15199</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to print the negative numbers in RED text and send the contents to my email id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to print numbers in the body of the email using proc report but loosing the red color logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please share the style or format i need to apply to get the negative numbers in red color on the email body&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bunch of percentages/dollar values to keep it simple for the users i have created a simple version of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;input @1 percent;&lt;BR /&gt;datalines;&lt;BR /&gt;10.12&lt;BR /&gt;-10.30&lt;BR /&gt;20.3&lt;BR /&gt;-40.30&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;title "";&lt;BR /&gt;FILENAME NOTE EMAIL&lt;BR /&gt;TO=("user@gmail.com")&lt;BR /&gt;SUBJECT ="DAILY"&lt;BR /&gt;type="text/html"&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;ods html body=note;&lt;/P&gt;&lt;P&gt;PROC REPORT DATA=TEST;&lt;BR /&gt;COL percent;&lt;BR /&gt;DEFINE percent / display&amp;nbsp;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;ODS HTML CLOSE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247173#M15199</guid>
      <dc:creator>Praveen1</dc:creator>
      <dc:date>2016-02-01T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Print negative number in RED - E-mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247176#M15200</link>
      <description>&lt;P&gt;I don't see how you implemented the red color logic in the first place. Could you also supply that piece of the code?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247176#M15200</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-01T11:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Print negative number in RED - E-mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247181#M15201</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute percent;
   if sign(percent) eq -1 then call define(_col_,'style','style=[color=RED]');
   endcomp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Feb 2016 12:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247181#M15201</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-01T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Print negative number in RED - E-mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247187#M15202</link>
      <description>Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;It worked perfectly.&lt;BR /&gt;&lt;BR /&gt;I was not aware of SIGN() function..</description>
      <pubDate>Mon, 01 Feb 2016 12:37:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Print-negative-number-in-RED-E-mail/m-p/247187#M15202</guid>
      <dc:creator>Praveen1</dc:creator>
      <dc:date>2016-02-01T12:37:19Z</dc:date>
    </item>
  </channel>
</rss>

