<?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 - Coloring for Spanning Headers in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94615#M9480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="mailto:Cynthia@sas"&gt;Cynthia@sas&lt;/A&gt;. So is there any other way in SAS that I can follow to open an existing excel sheet and write the results into it with all the formatting that I am now doing with tagsets.excelxp?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 04:40:17 GMT</pubDate>
    <dc:creator>neha_sas</dc:creator>
    <dc:date>2012-04-27T04:40:17Z</dc:date>
    <item>
      <title>Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94611#M9476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a Excel report which would have data output from SAS dataset. I am using Proc report through ODS Tagset.ExcelXP to write the data in an Excel. I am facing a couple of issues while trying to complete this&lt;/P&gt;&lt;P&gt;1) Report contains 3 levels of Spanning headers and I would need different background colors for all the headers.&lt;/P&gt;&lt;P&gt;I was trying the Traffic Lighting way&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value $color&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'REPORT' = '#9999FF'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Australia' = '#FF6600'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = '#FF6600';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file = 'report.xls' options ( Autofilter = 'YES' absolute_column_width = "11,14,........) style = sansprinter;&lt;/P&gt;&lt;P&gt;proc report data = sfin.reportfin nowd style(header) = { background = $color. font_size= 10pt};&lt;/P&gt;&lt;P&gt;column ('REPORT'('Australia' ABC DEF XYZ ('States' X Y Z (....))));&lt;/P&gt;&lt;P&gt;display ABC&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;but the headers do not take the desired background values. Not sure if this appoach is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Inline formatting using ods escapechar not working.Although I am not getting any errors in the log.&lt;/P&gt;&lt;P&gt;3) This report would be generated bimonthly and as part of the next iteration, I would want to open the same excel sheet and wrtie out the results. all this would happen dynamically, meaning I would not know how many rows would get populated in the spreadsheet.The challenge here is that I am not finding any option that allows me to open an existing spreadsheet to write out the results.Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 14:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94611#M9476</guid>
      <dc:creator>neha_sas</dc:creator>
      <dc:date>2012-04-25T14:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94612#M9477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Last question first--TAGSETS.EXCELXP&amp;nbsp; only creates a new file-- it will NOT add to an existing workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THere are ways to make fake spanning headers by using ACROSS usage, but i am not able to post code right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yr format method won't work because you do not have data values right now, you only have text strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 17:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94612#M9477</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-04-25T17:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94613#M9478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods escapechar = '^';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods tagsets.excelxp file="test.xml";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc report data=sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;col ('^{style &lt;FONT color="green"&gt;green header}' name age sex) ('^{style &lt;FONT color="red"&gt;red header}' height weight);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;define name--weight / display&amp;nbsp; style(header)={background=black color=white};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods tagsets.excelxp close;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel-headers.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/1953_excel-headers.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 18:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94613#M9478</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2012-04-25T18:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94614#M9479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hey Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code but its not working at my end. Not sure why this is happening but am not getting any headers ...The header text is just missing and I have BLANK headers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 04:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94614#M9479</guid>
      <dc:creator>neha_sas</dc:creator>
      <dc:date>2012-04-27T04:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94615#M9480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="mailto:Cynthia@sas"&gt;Cynthia@sas&lt;/A&gt;. So is there any other way in SAS that I can follow to open an existing excel sheet and write the results into it with all the formatting that I am now doing with tagsets.excelxp?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 04:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94615#M9480</guid>
      <dc:creator>neha_sas</dc:creator>
      <dc:date>2012-04-27T04:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94616#M9481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try my example but change the destination to HTML. If that works, then you're probably not using the latest version of the ExcelXP tagset. See &lt;A href="http://support.sas.com/rnd/base/ods/odsmarkup/index.html" title="http://support.sas.com/rnd/base/ods/odsmarkup/index.html"&gt;http://support.sas.com/rnd/base/ods/odsmarkup/index.html&lt;/A&gt;. If my example doesn't work with HTML, or you already have the latest version of the ExcelXP tagset, then you should probably take this up with Technical Support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 12:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94616#M9481</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2012-04-27T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94617#M9482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having exactly the same results. Has anyone figured out a way to get this to work?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 01:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94617#M9482</guid>
      <dc:creator>Bob_Wilcox</dc:creator>
      <dc:date>2014-04-02T01:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94618#M9483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Look at the example of using ACROSS to style the spanning headers in this paper (&lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf" title="http://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf"&gt;http://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf&lt;/A&gt;) starting on page 11 and continuing to page 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 02:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94618#M9483</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-04-02T02:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94619#M9484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cynthia, this is sooooooo close. is there any way that I can email my results, so you can see what's happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 04:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94619#M9484</guid>
      <dc:creator>Bob_Wilcox</dc:creator>
      <dc:date>2014-04-03T04:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94620#M9485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'd prefer to put examples here instead of emailing, that way, everybody who's interested learns something and people who are searching in the future can read the conclusion of the thread. It's possible to mock up a sample program based on SASHELP.CLASS. Your idea to use formats was a clever one. I knew that formats would work for some headers, but didn't really expect that the technique would work for spanning headers, too. So, that was a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Here's something else to try. The program shows that you can use the format, with the style(header) in the PROC REPORT statement (see #1) or you can do something like shown in #2, where you can use a slightly different format, but override a particular value, in a DEFINE statement, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value $color&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'REPORT' = '#9999FF'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Australia' = '#FF6600'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'States' = 'pink'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Wombat' = 'lightgreen'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = 'lightblue';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value $altclr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'REPORT' = '#9999FF'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Australia' = '#FF6600'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'States', 'Height', 'Weight' = 'pink'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Wombat', 'Name', 'Age', 'Sex' = 'lightgreen'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = 'lightblue';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods listing close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.excelxp file = 'c:\temp\report.xml' &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; options ( embedded_titles='yes') style = sansprinter;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data = sashelp.class(obs=3) nowd &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; style(header) = { background = $color. font_size= 10pt};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; title 'All Headers Different Colors Based on Formats';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; column ('REPORT'('Australia' ('Wombat' name age sex )('States' height weight)));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc report data = sashelp.class(obs=3) nowd &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; style(header) = { background = $altclr. font_size= 10pt};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; title 'Some Headers Same Colors Based on Formats (one header diff)';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; column ('REPORT'('Australia' ('Wombat' name age sex )('States' height weight)));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define name / 'Name';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define age / 'Age';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define sex / 'Sex';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define height / 'Height';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; define weight / 'Weight'&amp;nbsp; style(header)={background=lightyellow};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods _all_ close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11759i681EF388793BAD45/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="tabs_side_by_side.png" title="tabs_side_by_side.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2014 04:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94620#M9485</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-04-06T04:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94621#M9486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did it! Thaks so much for all of your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 01:10:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94621#M9486</guid>
      <dc:creator>Bob_Wilcox</dc:creator>
      <dc:date>2014-04-07T01:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94622#M9487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hi Cynthia ,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;This is great document , very helpful.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have quick Question about it.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I ran your code on windows SAS 9.3 and it worked perfectly. Where as the same code on SAS GRID (Linux Environment) , columns are not holding the color information . Do we need to something differently for it ? Let me know. Thanks.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;PROC FORMAT for Colors not working , where as if I give hardcoded color values , its working fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 22:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94622#M9487</guid>
      <dc:creator>Dob4Die</dc:creator>
      <dc:date>2014-12-03T22:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Coloring for Spanning Headers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94623#M9488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; First, it's not a good idea to add your question to a 9 month old post. It's better to start a new post and put a link to the post you are referenceing. I am teaching this week and don't have time to run the code extensively. I do not have a GRID/Linux installation to test with. If you are saying that you ran the EXACT code above on a different operating system and you do NOT get the results shown in the screen shot, then that is a question for Tech Support. When I run the EXACT code in SAS 9.4 in Enterprise Guide and in SAS on Windows, I get the EXACT same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 14:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Coloring-for-Spanning-Headers/m-p/94623#M9488</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-12-04T14:52:45Z</dc:date>
    </item>
  </channel>
</rss>

