<?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 Add color to the report based on the cell value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-color-to-the-report-based-on-the-cell-value/m-p/312927#M270773</link>
    <description>&lt;P&gt;I want to add the color to the report based on the cell value.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
     value  usercolor 1="RED" 2="BLUE" 3="YELLOW"
      4="GREEN" 5="PINK" 6="ORANGE"
      7="MARRON" 8="CYAN";
run; 

Ods html body="c:\report.html";
Proc report data=myfile.info;
   column Name A1 A2 A3 A4 A5 A6 A7 A8; 
   define A1 / display style={Backgroundcolor=usercolor};
   define A2 / display style={Backgroundcolor=usercolor};
   define A3 / display style={Backgroundcolor=usercolor};
   define A4 / display style={Backgroundcolor=usercolor};
   define A5 / display style={Backgroundcolor=usercolor};
   define A6 / display style={Backgroundcolor=usercolor};
   define A7 / display style={Backgroundcolor=usercolor};
   define A8 / display style={Backgroundcolor=usercolor};
   define Adventure / display style={Backgroundcolor=usercolor};
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The values in the cells are 1~9 or just missing value.&lt;/P&gt;&lt;P&gt;However the colors are not added at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2016 21:14:39 GMT</pubDate>
    <dc:creator>sas_newbie3</dc:creator>
    <dc:date>2016-11-20T21:14:39Z</dc:date>
    <item>
      <title>Add color to the report based on the cell value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-color-to-the-report-based-on-the-cell-value/m-p/312927#M270773</link>
      <description>&lt;P&gt;I want to add the color to the report based on the cell value.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
     value  usercolor 1="RED" 2="BLUE" 3="YELLOW"
      4="GREEN" 5="PINK" 6="ORANGE"
      7="MARRON" 8="CYAN";
run; 

Ods html body="c:\report.html";
Proc report data=myfile.info;
   column Name A1 A2 A3 A4 A5 A6 A7 A8; 
   define A1 / display style={Backgroundcolor=usercolor};
   define A2 / display style={Backgroundcolor=usercolor};
   define A3 / display style={Backgroundcolor=usercolor};
   define A4 / display style={Backgroundcolor=usercolor};
   define A5 / display style={Backgroundcolor=usercolor};
   define A6 / display style={Backgroundcolor=usercolor};
   define A7 / display style={Backgroundcolor=usercolor};
   define A8 / display style={Backgroundcolor=usercolor};
   define Adventure / display style={Backgroundcolor=usercolor};
run;
ods html close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The values in the cells are 1~9 or just missing value.&lt;/P&gt;&lt;P&gt;However the colors are not added at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 21:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-color-to-the-report-based-on-the-cell-value/m-p/312927#M270773</guid>
      <dc:creator>sas_newbie3</dc:creator>
      <dc:date>2016-11-20T21:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add color to the report based on the cell value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-color-to-the-report-based-on-the-cell-value/m-p/312930#M270774</link>
      <description>&lt;P&gt;When using&amp;nbsp;a format, it needs to end with a period.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define A1 / display style={Backgroundcolor=usercolor.};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See this paper here for other options:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings13/366-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/366-2013.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 21:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-color-to-the-report-based-on-the-cell-value/m-p/312930#M270774</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-20T21:49:15Z</dc:date>
    </item>
  </channel>
</rss>

