<?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: PROC REPORT   color code a cell based on the value in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/308301#M17284</link>
    <description>&lt;P&gt;I used _c3_ and it worked (instead of using the var name)&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2016 15:39:21 GMT</pubDate>
    <dc:creator>GreggB</dc:creator>
    <dc:date>2016-10-31T15:39:21Z</dc:date>
    <item>
      <title>PROC REPORT   color code a cell based on the value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307954#M17267</link>
      <description>&lt;P&gt;I want my report to color the cells red in the field named pct_ind5a that are less than 56. My code below colors the entire column. I also get a message that pct_ind5a is uninitialized. Yet, the variable is in the data set and it shows on the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=join1a nowd split='*' style(header)={background=cx66cc99 font_size=10pt} style(column)={font_size=10pt} &lt;BR /&gt; style(report)={vjust=c just=c cellpadding=0pt}&lt;BR /&gt; style(column)={just=center};&lt;BR /&gt; column ("" school)&lt;BR /&gt; (" " pct_ind5a)&lt;BR /&gt; (" " pct_ind5b);&lt;BR /&gt; define school/ style=[width=200];&lt;BR /&gt; define pct_ind5a/ style=[width=80];&lt;BR /&gt; define pct_ind5b/style=[width=80];&lt;BR /&gt; compute school; endcomp;&lt;BR /&gt; compute pct_ind5a; &lt;BR /&gt; if pct_ind5a &amp;lt; 56 then call define (_COL_,'style','style={background=red}'); &lt;BR /&gt; endcomp;&lt;BR /&gt; compute pct_ind5b; endcomp;&lt;BR /&gt; title "School Profile Reports 2014-2015";&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 16:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307954#M17267</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-10-28T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT   color code a cell based on the value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307964#M17268</link>
      <description>&lt;P&gt;Because pct_ind5a is a numeric variable, it defaults to being an ANALYSIS variable and has the default statistic SUM. Therefore you must refer to it as pct_ind5a.sum in the COMPUTE block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if pct_ind5a.sum &amp;lt; 56 then call define (_COL_,'style','style={background=red}'); &lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473627.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002473627.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146851.htm#a000065094" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146851.htm#a000065094&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307964#M17268</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-10-28T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT   color code a cell based on the value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307965#M17269</link>
      <description>&lt;P&gt;Wow, just like that. &amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307965#M17269</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-10-28T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT   color code a cell based on the value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307974#M17270</link>
      <description>&lt;P&gt;I introduced some more vars and got this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The variable type of PCT_IND7AST2.SUM is invalid in this context.&lt;BR /&gt;NOTE: The preceding messages refer to the COMPUTE block for ind7aST2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 18:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/307974#M17270</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-10-28T18:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT   color code a cell based on the value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/308262#M17282</link>
      <description>&lt;P&gt;It's difficult to say without more information about PCT_IND7AST2. What is the DEFINE statement for this variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My previous advice applied to ANALYSIS vars with the default statistic SUM.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 12:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/308262#M17282</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-10-31T12:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT   color code a cell based on the value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/308301#M17284</link>
      <description>&lt;P&gt;I used _c3_ and it worked (instead of using the var name)&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 15:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-REPORT-color-code-a-cell-based-on-the-value/m-p/308301#M17284</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-10-31T15:39:21Z</dc:date>
    </item>
  </channel>
</rss>

