<?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: I want to conditionally highlight the cell. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65160#M18576</link>
    <description>Suggestion posted here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=12619&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=12619&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 21 Jan 2011 17:11:41 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-01-21T17:11:41Z</dc:date>
    <item>
      <title>I want to conditionally highlight the cell.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65159#M18575</link>
      <description>============================================================&lt;BR /&gt;
ANUM JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC TOTAL_FAIL&lt;BR /&gt;
============================================================&lt;BR /&gt;
4299 40 20 27 37 25 32 26 24 22 28 17 33 27.58&lt;BR /&gt;
4264 30 30 36 15 17 27 27 30 25 27 14 24 25.17&lt;BR /&gt;
4246 19 24 40 18 32 18 20 19 24 16 14 25 22.42&lt;BR /&gt;
4281 16 18 31 23 17 24 27 20 19 26 13 27 21.75&lt;BR /&gt;
41786 21 43 33 21 20 21 26 21 11 11 13 14 21.25&lt;BR /&gt;
4080 16 19 21 16 13 23 13 18 21 17 27 20 18.67&lt;BR /&gt;
4262 17 14 23 16 30 22 20 18 26 11 9 10 18.00&lt;BR /&gt;
1789 19 19 14 10 21 19 24 17 18 24 9 14 17.33&lt;BR /&gt;
4315 20 11 28 17 18 19 11 22 17 25 5 11 17.00&lt;BR /&gt;
4297 16 11 17 15 14 14 15 16 28 12 6 26 15.83&lt;BR /&gt;
4279 17 15 16 11 14 14 8 15 14 15 8 8 12.92&lt;BR /&gt;
4042 15 6 8 6 3 9 13 19 8 3 5 10 8.75&lt;BR /&gt;
41787 4 4 9 9 3 8 8 19 16 8 10 7 8.75&lt;BR /&gt;
2377 10 6 11 4 13 11 4 8 9 4 4 7 7.58&lt;BR /&gt;
4241 6 5 9 5 7 7 6 12 6 7 3 4 6.42&lt;BR /&gt;
============================================================&lt;BR /&gt;
hi.......&lt;BR /&gt;
I want to conditionally highlight the cell.&lt;BR /&gt;
In  col(ANUM) is number for asset and values in MONTH(Jan,Feb....DEC) column are No. of Failures with respective to month and TOTAL_FAIL in mean on all month.&lt;BR /&gt;
&lt;BR /&gt;
I want to highlight the values whose values are greater then TOTAL_FAIL With respect to ANUM col as Red or some other color.&lt;BR /&gt;
&lt;BR /&gt;
ex:-in 1st row i want to highlight the values 40,37,32,28,33&lt;BR /&gt;
      in 2nd row i want to highlight the values 30,30,30,27,27,27&lt;BR /&gt;
&lt;BR /&gt;
This code is not working gr8 as per ma requirement&lt;BR /&gt;
compute JAN ;&lt;BR /&gt;
if JAN OR FEB OR MAR OR APR GE TOTAL_FAILURES then do;&lt;BR /&gt;
call define(_COL_,'STYLE','STYLE=[foreground=red]');&lt;BR /&gt;
end;&lt;BR /&gt;
else&lt;BR /&gt;
call define(_COL_,'STYLE','STYLE=[foreground=black]');&lt;BR /&gt;
&lt;BR /&gt;
end comp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I 'll be very thankful for you suggestion</description>
      <pubDate>Fri, 21 Jan 2011 16:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65159#M18575</guid>
      <dc:creator>sss</dc:creator>
      <dc:date>2011-01-21T16:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: I want to conditionally highlight the cell.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65160#M18576</link>
      <description>Suggestion posted here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=12619&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=12619&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 21 Jan 2011 17:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65160#M18576</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-21T17:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: I want to conditionally highlight the cell.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65161#M18577</link>
      <description>Hi:&lt;BR /&gt;
Also, there is no need to make the same posting multiple times. It only makes your posting(s) hard to follow. So far, you have these 4 posts on the same topic:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=12444&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=12444&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=12624&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=12624&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=12620&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=12620&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=12619&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=12619&amp;amp;tstart=0&lt;/A&gt;</description>
      <pubDate>Sat, 22 Jan 2011 11:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65161#M18577</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-22T11:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: I want to conditionally highlight the cell.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65162#M18578</link>
      <description>Hi. very interesting.&lt;BR /&gt;
Cynthia gives very details and useful information.Are you to try what she said?&lt;BR /&gt;
So reference my code.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data temp;&lt;BR /&gt;
input ANUM JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC TOTAL_FAIL ;&lt;BR /&gt;
cards;&lt;BR /&gt;
4299 40 20 27 37 25 32 26 24 22 28 17 33 27.58&lt;BR /&gt;
4264 30 30 36 15 17 27 27 30 25 27 14 24 25.17&lt;BR /&gt;
4246 19 24 40 18 32 18 20 19 24 16 14 25 22.42&lt;BR /&gt;
4281 16 18 31 23 17 24 27 20 19 26 13 27 21.75&lt;BR /&gt;
41786 21 43 33 21 20 21 26 21 11 11 13 14 21.25&lt;BR /&gt;
4080 16 19 21 16 13 23 13 18 21 17 27 20 18.67&lt;BR /&gt;
4262 17 14 23 16 30 22 20 18 26 11 9 10 18.00&lt;BR /&gt;
1789 19 19 14 10 21 19 24 17 18 24 9 14 17.33&lt;BR /&gt;
4315 20 11 28 17 18 19 11 22 17 25 5 11 17.00&lt;BR /&gt;
4297 16 11 17 15 14 14 15 16 28 12 6 26 15.83&lt;BR /&gt;
4279 17 15 16 11 14 14 8 15 14 15 8 8 12.92&lt;BR /&gt;
4042 15 6 8 6 3 9 13 19 8 3 5 10 8.75&lt;BR /&gt;
41787 4 4 9 9 3 8 8 19 16 8 10 7 8.75&lt;BR /&gt;
2377 10 6 11 4 13 11 4 8 9 4 4 7 7.58&lt;BR /&gt;
4241 6 5 9 5 7 7 6 12 6 7 3 4 6.42&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html file='c:\test.html' style=sasweb;&lt;BR /&gt;
proc report data=temp nowd;&lt;BR /&gt;
 column anum JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC total_fail ;&lt;BR /&gt;
 define anum /display;&lt;BR /&gt;
 define jan /display;&lt;BR /&gt;
 define feb /display;&lt;BR /&gt;
 define mar /display;&lt;BR /&gt;
 define apr /display;&lt;BR /&gt;
 define may /display;&lt;BR /&gt;
 define jun /display;&lt;BR /&gt;
 define jul /display;&lt;BR /&gt;
 define aug /display;&lt;BR /&gt;
 define sep /display;&lt;BR /&gt;
 define oct /display;&lt;BR /&gt;
 define nov /display;&lt;BR /&gt;
 define dec /display;&lt;BR /&gt;
 define total_fail/display;&lt;BR /&gt;
 compute total_fail;&lt;BR /&gt;
  if JAN ge total_fail then call define('JAN','style','style={foreground=red}');&lt;BR /&gt;
  if FEB ge total_fail then call define('FEB','style','style={foreground=red}');&lt;BR /&gt;
  if MAR ge total_fail then call define('MAR','style','style={foreground=red}');&lt;BR /&gt;
  if APR ge total_fail then call define('APR','style','style={foreground=red}');&lt;BR /&gt;
  if MAY ge total_fail then call define('MAY','style','style={foreground=red}');&lt;BR /&gt;
  if JUN ge total_fail then call define('JUN','style','style={foreground=red}');&lt;BR /&gt;
  if JUL ge total_fail then call define('JUL','style','style={foreground=red}');&lt;BR /&gt;
  if AUG ge total_fail then call define('AUG','style','style={foreground=red}');&lt;BR /&gt;
  if SEP ge total_fail then call define('SEP','style','style={foreground=red}');&lt;BR /&gt;
  if OCT ge total_fail then call define('OCT','style','style={foreground=red}');&lt;BR /&gt;
  if NOV ge total_fail then call define('NOV','style','style={foreground=red}');&lt;BR /&gt;
  if DEC ge total_fail then call define('DEC','style','style={foreground=red}');&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
BTW, proc report sometimes will give us weird result,which needs patient for us.&lt;BR /&gt;
Good Luck.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 24 Jan 2011 03:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-want-to-conditionally-highlight-the-cell/m-p/65162#M18578</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-01-24T03:33:41Z</dc:date>
    </item>
  </channel>
</rss>

