<?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: Set Header Color using Template. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267918#M15800</link>
    <description>&lt;P&gt;Boarder of the header. &amp;nbsp;In proc report it would be&amp;nbsp;style(header)=[background=#FFBA00]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do the same thing for proc sgpannel.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12508iCEB2F48A929F3858/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="header.png" title="header.png" /&gt;</description>
    <pubDate>Tue, 03 May 2016 13:12:42 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2016-05-03T13:12:42Z</dc:date>
    <item>
      <title>Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267723#M15790</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;  
	  define statgraph statGraphName style ;
	    dynamic TITLE1 TITLE2 TITLE3;
		begingraph;
		  entrytitle TITLE1;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I include a color style along with other options in proc template?&amp;nbsp; I know this is a simple question but I’m having a hard time finding examples in documentation. &amp;nbsp;My objective is to set the header color for the template.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 20:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267723#M15790</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-05-02T20:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267729#M15791</link>
      <description>&lt;P&gt;Define header colour, is that the text, the background, the border of the header?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 21:14:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267729#M15791</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-02T21:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267918#M15800</link>
      <description>&lt;P&gt;Boarder of the header. &amp;nbsp;In proc report it would be&amp;nbsp;style(header)=[background=#FFBA00]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do the same thing for proc sgpannel.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12508iCEB2F48A929F3858/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="header.png" title="header.png" /&gt;</description>
      <pubDate>Tue, 03 May 2016 13:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267918#M15800</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-05-03T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267977#M15802</link>
      <description>&lt;P&gt;&lt;SPAN&gt;proc&lt;/SPAN&gt; &lt;SPAN&gt;sgpanel&lt;/SPAN&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;=sashelp.class;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;panelby&lt;/SPAN&gt;&lt;SPAN&gt; sex / headerbackcolor=red;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;scatter&lt;/SPAN&gt; &lt;SPAN&gt;y&lt;/SPAN&gt;&lt;SPAN&gt;=age &lt;/SPAN&gt;&lt;SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN&gt;=age;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 15:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267977#M15802</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-05-03T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267983#M15804</link>
      <description>&lt;P&gt;This doesn't work for setting custom colors FFBA00 is changes the color but has the same result as F9DF97.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 15:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/267983#M15804</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-05-03T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268010#M15806</link>
      <description>&lt;P&gt;Hi, This worked for me in SAS 9.4 M3, but did not work in SAS 9.4 M0 (got an error on PANELBY statement). I don't have any other versions to test with. You might want to check with Tech Support or post your question on the SAS/GRAPH and ODS GRAPHICS forum. ( I like pink better than red. So the color should not make a difference -- however, SAS does have a registry list of colors and if you specify a color that isn't in the registry list, it is possible that the color you specify will be mapped to a different color. This happens when you use "named" colors like aliceblue or red or pink -- they always get "translated" to their RGB equivalent.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3006iBBCE047F5A40E9B0/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="headerbackcolor.png" title="headerbackcolor.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and, when I use CXFFBA00, this is what I get...is this what you're expecting???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3007i5EA4BA27D91B4D08/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="cxffba00.png" title="cxffba00.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 17:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268010#M15806</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-05-03T17:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268013#M15807</link>
      <description>&lt;P&gt;Cynthia,&amp;nbsp;thanks for solving the color display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you convert the hex color FFBA00 to&amp;nbsp;&lt;SPAN&gt;CXFFBA00 ? &amp;nbsp;I need to make sure it is the same color.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 17:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268013#M15807</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-05-03T17:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268022#M15808</link>
      <description>&lt;P&gt;Do I need to create a style to create a color gradient for the bars of a group by in sgpannel? &amp;nbsp;Is this done style template? &amp;nbsp;Can you recomend a good example to base off of?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 18:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268022#M15808</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2016-05-03T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268194#M15809</link>
      <description>hi, David...I did not do any "translation" .. the FF is Red value in hex; the BA is Green value in hex; the 00 is Blue value in hex. All I did was put CX in front of the number because that is how SAS determines that the number is an RGB number. In HTML, you might be able to get away without the # in #FFBA00 -- but for SAS and ODS with RGB values it is better to preface them with CX.&lt;BR /&gt;&lt;BR /&gt;If you want to verify a color value, go on the web to one of the "interactive" RGB color pickers, sometimes they are called HTML color pickers and spin the values or type the values in to see the color.&lt;BR /&gt;&lt;BR /&gt;In the SAS color naming systems, you can have CX for RGB colors, HLS for Hue, Lightness and saturation, GRAY## for grayscale values and a few others, like HSV or CMYK as described here: &lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatug/67914/HTML/default/viewer.htm#p0edl20cvxxmm9n1i9ht3n21eict.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatug/67914/HTML/default/viewer.htm#p0edl20cvxxmm9n1i9ht3n21eict.htm&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 04 May 2016 06:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268194#M15809</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-05-04T06:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Header Color using Template.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268195#M15810</link>
      <description>Off the top of my head, I think that gradients do need to be specified in the style template. I think it is a startcolor and an endcolor style attribute that defines the gradient range. The better place to post this question would be in the ODS GRAPHICS forum or by opening a track with Tech Support.  &lt;BR /&gt;Here's the web page that describes the ODS STYLE attributes/elements that can be used with ODS GRAPHICS:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#n02bywwj20lelzn15x30wucq9pn8.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#n02bywwj20lelzn15x30wucq9pn8.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 04 May 2016 06:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Set-Header-Color-using-Template/m-p/268195#M15810</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-05-04T06:26:30Z</dc:date>
    </item>
  </channel>
</rss>

