<?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: Color background of group name in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688990#M24533</link>
    <description>I messed up your thread &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Give me a few minutes to fix it.</description>
    <pubDate>Mon, 05 Oct 2020 19:42:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-10-05T19:42:49Z</dc:date>
    <item>
      <title>Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688968#M24529</link>
      <description>&lt;P&gt;Good afternoon.&amp;nbsp; I've been looking for a solution to this problem for a while and have had no luck.&amp;nbsp; I will start by saying that, although I've used sas for a while now, the functions of proc report are still rather new to me.&amp;nbsp; That said, I have a group of variables that I wanted 2 headers for.&amp;nbsp; I was hoping to find a way to just color the background of the top header (Names) and not the entire header row.&lt;/P&gt;&lt;PRE&gt;data person;
   input name $ dept $;
   datalines;
John Sales
Mary Acctng
;
run;

proc report data=person out=stuff
style(report)={font_size=8pt} 
style(header)={font_weight=bold borderwidth=0 borderspacing=0 font_size=9pt };
COLUMN ("All Data" ("Names" Name) ("Department" Dept));

define Name / display style(column)=[cellwidth=1.2in];
define Dept / display style(column)=[cellwidth=1.2in];
run;&lt;/PRE&gt;&lt;P&gt;I've tried using call define, but can't figure out how to use that method to target just the cell that the header appears in.&amp;nbsp; I've also tried to manipulate the style in the column statement to no avail.&amp;nbsp; Hoping there's a rather easy method to this madness that doesn't require me to be an advanced coder to sort out.&amp;nbsp; Any help you can provide is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688968#M24529</guid>
      <dc:creator>Knopperoni</dc:creator>
      <dc:date>2020-10-05T19:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688975#M24530</link>
      <description>Can you include an image of what you want here? An example from Excel is fine but it's hard to 'see' exactly what you want.</description>
      <pubDate>Mon, 05 Oct 2020 19:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688975#M24530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-05T19:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688984#M24534</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="What_I_Want.JPG" style="width: 198px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50180iF6AC4D6A65C11EB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="What_I_Want.JPG" alt="What_I_Want.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For lack of a better way of doing it - this is sort of what I'm looking for.&amp;nbsp; I want to be able to control the color background color of one of the second header cells.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688984#M24534</guid>
      <dc:creator>Knopperoni</dc:creator>
      <dc:date>2020-10-05T19:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688987#M24531</link>
      <description>&lt;P&gt;Did you try in the Style(header) statement to include something like&amp;nbsp; "Background=pink" as on of the options?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688987#M24531</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-05T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688989#M24532</link>
      <description>&lt;P&gt;Yeah, I did that, and for that most part, that works.&amp;nbsp; However, I was looking to achieve a higher level of versatility.&amp;nbsp; If I use the style function within the report header control, it would color both "Names" and "Department."&amp;nbsp; The enclosed example is just a simple test version of the actual project I'm working on and I was trying to avoid coloring the entire header row which is why I'm trying to just influence one header &lt;EM&gt;cell.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if there is really a way to achieve that level of control simply, but if there is, that's what I'm looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688989#M24532</guid>
      <dc:creator>Knopperoni</dc:creator>
      <dc:date>2020-10-05T19:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688990#M24533</link>
      <description>I messed up your thread &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Give me a few minutes to fix it.</description>
      <pubDate>Mon, 05 Oct 2020 19:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688990#M24533</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-05T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688993#M24535</link>
      <description>Looks like it's fixed but slightly out of order &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;My apologies. I was trying to move it to the Reporting forum so a reporting person can respond. &lt;BR /&gt;&lt;BR /&gt;Hopefully someone with reporting experience can reply. I know this is possible and until someone answers your question definitively I think the answer can be found here:&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p14xegao6xt0xnn1865r422tpytw.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=p14xegao6xt0xnn1865r422tpytw.htm&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688993#M24535</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-05T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688998#M24536</link>
      <description>&lt;P&gt;See if this gives you some help:&lt;/P&gt;
&lt;PRE&gt;proc report data=person out=stuff
style(report)={font_size=8pt} 
style(header)={font_weight=bold borderwidth=0 
borderspacing=0 font_size=9pt  };
COLUMN ("All Data"  Name  Dept);

define Name / display style(column)=[cellwidth=1.2in] 
              style(header)=[background=pink] "Names";
define Dept / display style(column)=[cellwidth=1.2in]
              style(header)=[background=lightblue]"Department" ;

run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Oct 2020 20:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/688998#M24536</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-05T20:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/689007#M24537</link>
      <description>&lt;P&gt;"AHHHHHHHHHHHHHHHHHHHHH" - that's what a sigh of relief looks like. Thank you so much.&amp;nbsp; I had to reconfigure some of my define statements slightly but this nuanced, yet simple solution is just what the doctor ordered.&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, you get the hero for the day award.&amp;nbsp; A MILLION times thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 21:19:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/689007#M24537</guid>
      <dc:creator>Knopperoni</dc:creator>
      <dc:date>2020-10-05T21:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/689395#M24539</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Using a format for the header background, including spanning headers works in 9.4 M5 and M6, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1602031869934.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50245iB873B74CD481FB7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1602031869934.png" alt="Cynthia_sas_0-1602031869934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This approach might work for you. Of course you have to know what the values are going to be for the column headers in order to code the PROC FORMAT, but it might be a possibility for what you want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 00:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/689395#M24539</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-10-07T00:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Color background of group name in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/689590#M24540</link>
      <description>&lt;P&gt;Cynthia, thank you - this is a cool approach.&amp;nbsp; I will very likely use the proc format methodology at some point.&amp;nbsp; I appreciate the added insight!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 15:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Color-background-of-group-name-in-proc-report/m-p/689590#M24540</guid>
      <dc:creator>Knopperoni</dc:creator>
      <dc:date>2020-10-07T15:28:20Z</dc:date>
    </item>
  </channel>
</rss>

