<?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: Highlighting Complete Columns in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1590#M712</link>
    <description>It is possible but not easy.  You have to combine traffic lighting with TABULATE's special-purpose STYLE=&lt;PARENT&gt; syntax.  Here's an example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html body="band.html"; ods listing close;&lt;BR /&gt;
&lt;BR /&gt;
title;&lt;BR /&gt;
&lt;BR /&gt;
data;&lt;BR /&gt;
  input region $ citysize $ pop product $ saletype $&lt;BR /&gt;
        quantity amount;&lt;BR /&gt;
  cards;&lt;BR /&gt;
   NC S   25000 A100 R 150   3750.00&lt;BR /&gt;
   NE S   37000 A100 R 200   5000.00&lt;BR /&gt;
   SO S   48000 A100 R 410  10250.00&lt;BR /&gt;
   WE S   32000 A100 R 180   4500.00&lt;BR /&gt;
   NC M  125000 A100 R 350   8750.00&lt;BR /&gt;
   NE M  237000 A100 R 600  15000.00&lt;BR /&gt;
   SO M  348000 A100 R 710  17750.00&lt;BR /&gt;
   WE M  432000 A100 R 780  19500.00&lt;BR /&gt;
   NE L  837000 A100 R 800  20000.00&lt;BR /&gt;
   SO L  748000 A100 R 760  19000.00&lt;BR /&gt;
   WE L  932000 A100 R 880  22000.00&lt;BR /&gt;
   NC S   25000 A100 W 150   3000.00&lt;BR /&gt;
   NE S   37000 A100 W 200   4000.00&lt;BR /&gt;
   WE S   32000 A100 W 180   3600.00&lt;BR /&gt;
   NC M  125000 A100 W 350   7000.00&lt;BR /&gt;
   NE M  237000 A100 W 600  12000.00&lt;BR /&gt;
   SO M  348000 A100 W 710  14200.00&lt;BR /&gt;
   WE M  432000 A100 W 780  15600.00&lt;BR /&gt;
   NC L  625000 A100 W 750  15000.00&lt;BR /&gt;
   NE L  837000 A100 W 800  16000.00&lt;BR /&gt;
   SO L  748000 A100 W 760  15200.00&lt;BR /&gt;
   WE L  932000 A100 W 880  17600.00&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
   value $salefmt 'R'='Retail'&lt;BR /&gt;
                  'W'='Wholesale';&lt;BR /&gt;
&lt;BR /&gt;
   /*-- define region background color --*/&lt;BR /&gt;
&lt;BR /&gt;
   value $regcol  'NC'='CX37E139'&lt;BR /&gt;
                  'NE'='CXDFFDC5'&lt;BR /&gt;
                  'SO'='CX37E139'&lt;BR /&gt;
                  'WE'='CXDFFDC5';&lt;BR /&gt;
   &lt;BR /&gt;
&lt;BR /&gt;
proc tabulate;&lt;BR /&gt;
   class region saletype; &lt;BR /&gt;
   classlev region     / s={background=$regcol.};&lt;BR /&gt;
   class citysize      / s=&lt;PARENT&gt;;&lt;BR /&gt;
   classlev citysize   / s=&lt;PARENT&gt;;&lt;BR /&gt;
   var quantity        / s=&lt;PARENT&gt;;&lt;BR /&gt;
   keyword sum         / s=&lt;PARENT&gt;;&lt;BR /&gt;
   format saletype $salefmt.;&lt;BR /&gt;
   label quantity="Quantity";&lt;BR /&gt;
   keylabel all="Total";&lt;BR /&gt;
&lt;BR /&gt;
   &lt;BR /&gt;
   table (saletype=' ' all),&lt;BR /&gt;
         region=' '*citysize*quantity*sum*{style=&lt;PARENT&gt;};&lt;BR /&gt;
&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
   ods html close; ods listing;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I'll point out that if you blank out a heading through which style is inherited, you must declare the inheritance with STYLE=&lt;PARENT&gt;.  Otherwise the inheritance will not take effect.  This is counter-intuitive, to say the least.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;</description>
    <pubDate>Fri, 20 Oct 2006 15:26:21 GMT</pubDate>
    <dc:creator>David_SAS</dc:creator>
    <dc:date>2006-10-20T15:26:21Z</dc:date>
    <item>
      <title>Highlighting Complete Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1589#M711</link>
      <description>I have heard about conventional traffic-lighting, where cell values are in a different colour according to their value. I also know how to highlight a particular column header using, say, CLASSLEV within TABULATE. But how do I highlight a complete column? Suppose I have a CLASS variable DATE for last week and I want to emphasise all values for, say, Wednesday. Is this possible?</description>
      <pubDate>Fri, 20 Oct 2006 12:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1589#M711</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-20T12:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Complete Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1590#M712</link>
      <description>It is possible but not easy.  You have to combine traffic lighting with TABULATE's special-purpose STYLE=&lt;PARENT&gt; syntax.  Here's an example:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html body="band.html"; ods listing close;&lt;BR /&gt;
&lt;BR /&gt;
title;&lt;BR /&gt;
&lt;BR /&gt;
data;&lt;BR /&gt;
  input region $ citysize $ pop product $ saletype $&lt;BR /&gt;
        quantity amount;&lt;BR /&gt;
  cards;&lt;BR /&gt;
   NC S   25000 A100 R 150   3750.00&lt;BR /&gt;
   NE S   37000 A100 R 200   5000.00&lt;BR /&gt;
   SO S   48000 A100 R 410  10250.00&lt;BR /&gt;
   WE S   32000 A100 R 180   4500.00&lt;BR /&gt;
   NC M  125000 A100 R 350   8750.00&lt;BR /&gt;
   NE M  237000 A100 R 600  15000.00&lt;BR /&gt;
   SO M  348000 A100 R 710  17750.00&lt;BR /&gt;
   WE M  432000 A100 R 780  19500.00&lt;BR /&gt;
   NE L  837000 A100 R 800  20000.00&lt;BR /&gt;
   SO L  748000 A100 R 760  19000.00&lt;BR /&gt;
   WE L  932000 A100 R 880  22000.00&lt;BR /&gt;
   NC S   25000 A100 W 150   3000.00&lt;BR /&gt;
   NE S   37000 A100 W 200   4000.00&lt;BR /&gt;
   WE S   32000 A100 W 180   3600.00&lt;BR /&gt;
   NC M  125000 A100 W 350   7000.00&lt;BR /&gt;
   NE M  237000 A100 W 600  12000.00&lt;BR /&gt;
   SO M  348000 A100 W 710  14200.00&lt;BR /&gt;
   WE M  432000 A100 W 780  15600.00&lt;BR /&gt;
   NC L  625000 A100 W 750  15000.00&lt;BR /&gt;
   NE L  837000 A100 W 800  16000.00&lt;BR /&gt;
   SO L  748000 A100 W 760  15200.00&lt;BR /&gt;
   WE L  932000 A100 W 880  17600.00&lt;BR /&gt;
&lt;BR /&gt;
proc format;&lt;BR /&gt;
   value $salefmt 'R'='Retail'&lt;BR /&gt;
                  'W'='Wholesale';&lt;BR /&gt;
&lt;BR /&gt;
   /*-- define region background color --*/&lt;BR /&gt;
&lt;BR /&gt;
   value $regcol  'NC'='CX37E139'&lt;BR /&gt;
                  'NE'='CXDFFDC5'&lt;BR /&gt;
                  'SO'='CX37E139'&lt;BR /&gt;
                  'WE'='CXDFFDC5';&lt;BR /&gt;
   &lt;BR /&gt;
&lt;BR /&gt;
proc tabulate;&lt;BR /&gt;
   class region saletype; &lt;BR /&gt;
   classlev region     / s={background=$regcol.};&lt;BR /&gt;
   class citysize      / s=&lt;PARENT&gt;;&lt;BR /&gt;
   classlev citysize   / s=&lt;PARENT&gt;;&lt;BR /&gt;
   var quantity        / s=&lt;PARENT&gt;;&lt;BR /&gt;
   keyword sum         / s=&lt;PARENT&gt;;&lt;BR /&gt;
   format saletype $salefmt.;&lt;BR /&gt;
   label quantity="Quantity";&lt;BR /&gt;
   keylabel all="Total";&lt;BR /&gt;
&lt;BR /&gt;
   &lt;BR /&gt;
   table (saletype=' ' all),&lt;BR /&gt;
         region=' '*citysize*quantity*sum*{style=&lt;PARENT&gt;};&lt;BR /&gt;
&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
   ods html close; ods listing;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I'll point out that if you blank out a heading through which style is inherited, you must declare the inheritance with STYLE=&lt;PARENT&gt;.  Otherwise the inheritance will not take effect.  This is counter-intuitive, to say the least.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;&lt;/PARENT&gt;</description>
      <pubDate>Fri, 20 Oct 2006 15:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1590#M712</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-10-20T15:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Complete Columns</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1591#M713</link>
      <description>Thank you, that is exactly what I was looking for!</description>
      <pubDate>Mon, 23 Oct 2006 08:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlighting-Complete-Columns/m-p/1591#M713</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-10-23T08:35:01Z</dc:date>
    </item>
  </channel>
</rss>

