<?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: Change the color with proc tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753170#M237345</link>
    <description>&lt;P&gt;You really should show ALL the code.&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.shoes(obs=20);
	title "Question";
	class region product;
   class Subsidiary/style=[background=lightgreen];
   Classlev Subsidiary / style= [background=lightgreen];
	table (Product ALL ='TOTAL1'), 
         (product ALL='TOTAL2')(Subsidiary ALL=[label='Total 3' style=[background=lightgreen]] );
		keylabel n=' ';
run;
&lt;/PRE&gt;
&lt;P&gt;CLASSLEV assigns properties to the levels, i.e. values of a class variable. If you want to change the CLASS variable appearance that can go on a CLASS statement or an override.&lt;/P&gt;
&lt;P&gt;ALL is not a value of the class variable so needs to be addressed separately in overrides.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 14:43:36 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-07-09T14:43:36Z</dc:date>
    <item>
      <title>Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753101#M237318</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering how to change the color on yellow for 2 last columns with proc tabulate :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarieT_0-1625825511550.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61097i2ADF07E74647A63C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarieT_0-1625825511550.png" alt="MarieT_0-1625825511550.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My code is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data shoes;
	set sashelp.shoes (obs=20);
run;

ods excel file = "\\XXXXX\mon_fichier_2.xlsx"
	options(start_at = "2,2" 
	embedded_titles = "on"
	embed_footnotes_once = "on"
	autofilter = "1-9"
	frozen_headers = "on"
	frozen_rowheaders = "2"
	absolute_column_width = "15,15,15,15,15,15,15,15,15,15"
	row_heights = "15,15,15,15,15,15"
	sheet_name = "Tableau"
	tab_color = "yellow")
	style=Listing;

proc tabulate data=shoes;
	title "Question";
	class region product Subsidiary;

	table (Product ALL ='TOTAL1'), (product ALL='TOTAL2')(Subsidiary ALL='TOTAL3');
		keylabel n=' ';
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;How can I change also the grey color ?&lt;/P&gt;
&lt;P&gt;Thank you ror your help !&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 10:14:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753101#M237318</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-07-09T10:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753119#M237327</link>
      <description>Have a look here in the doc to see how various elements can be colored&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p0e7wgyk6rm3ppn1pny8b38napm3.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p0e7wgyk6rm3ppn1pny8b38napm3.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Or choose a different style.</description>
      <pubDate>Fri, 09 Jul 2021 12:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753119#M237327</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-07-09T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753160#M237340</link>
      <description>Thank you, Bruno,&lt;BR /&gt;I put the color on "Abab", "Algiers" and "Cairo" with : Classlev Subsidiary / style= [background=lightgreen];&lt;BR /&gt;But still can't color "Subsidiary" end "TOTAL3".&lt;BR /&gt;&lt;BR /&gt;Thank your for your help !</description>
      <pubDate>Fri, 09 Jul 2021 14:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753160#M237340</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-07-09T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753170#M237345</link>
      <description>&lt;P&gt;You really should show ALL the code.&lt;/P&gt;
&lt;P&gt;Consider:&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.shoes(obs=20);
	title "Question";
	class region product;
   class Subsidiary/style=[background=lightgreen];
   Classlev Subsidiary / style= [background=lightgreen];
	table (Product ALL ='TOTAL1'), 
         (product ALL='TOTAL2')(Subsidiary ALL=[label='Total 3' style=[background=lightgreen]] );
		keylabel n=' ';
run;
&lt;/PRE&gt;
&lt;P&gt;CLASSLEV assigns properties to the levels, i.e. values of a class variable. If you want to change the CLASS variable appearance that can go on a CLASS statement or an override.&lt;/P&gt;
&lt;P&gt;ALL is not a value of the class variable so needs to be addressed separately in overrides.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:43:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753170#M237345</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-09T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753180#M237354</link>
      <description>Thank you Ballardw !&lt;BR /&gt;What is the difference between proc report and proc tabulate. &lt;BR /&gt;Maybe  the proc report is better to use?&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753180#M237354</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-07-09T14:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753187#M237357</link>
      <description>&lt;P&gt;The main differences between Proc Tabulate and Proc Report the way that I use them (others may see things differently) is that Proc Tabulate handles nesting in both row and column dimensions with multiple variables a bit "nicer" and allows multiple table statements in a single procedure call. Proc Report has more control over some things calculated in the procedure like break line summaries, calculations between result columns and compute blocks can conditionally assign appearance a bit more flexibly, with additional concerns, than Tabulate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which to use depends on what you need.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 15:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753187#M237357</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-09T15:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753200#M237362</link>
      <description>Thank you, ballardw. Last question: do you know please some option to change the grey color ?</description>
      <pubDate>Fri, 09 Jul 2021 15:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753200#M237362</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-07-09T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753206#M237364</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you, ballardw. Last question: do you know please some option to change the grey color ?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The "grey color" where? The thing I find most challenging with some of these style elements is just finding the proper name to address them.&lt;/P&gt;
&lt;P&gt;It may also help to mention which ODS Style you are using as a default or the the ODS destination as some of them default to different styles than the session setting.&lt;/P&gt;
&lt;P&gt;For example I have my SAS sessions set to use the style MEADOW. Which has almost no grey anywhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753206#M237364</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-09T16:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753217#M237371</link>
      <description>Thank you, Ballardw. My ods style is style=Listing. I would like to change the color for blue, by default.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753217#M237371</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-07-09T16:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753477#M237484</link>
      <description>&lt;P&gt;I suggest you have a look at the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p14qidvs5xf7omn14ommvsuhvmzn.htm" target="_self"&gt;ODS Style Gallery&lt;/A&gt; and pick the one that suits you best. Which style you choose also depends on the ODS destination you are using.&lt;/P&gt;
&lt;P&gt;Also have a look at the SAS Note&amp;nbsp;&lt;A href="https://support.sas.com/techsup/notes/v8/36/900.html" target="_blank"&gt;https://support.sas.com/techsup/notes/v8/36/900.html&lt;/A&gt;&amp;nbsp;it provides a program that will show you some output created with all the styles, open the frame.html to view them all. The program will create a lot of files.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 12:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/753477#M237484</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-07-12T12:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change the color with proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/754028#M237718</link>
      <description>Thank you, Bruno !</description>
      <pubDate>Wed, 14 Jul 2021 10:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-the-color-with-proc-tabulate/m-p/754028#M237718</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-07-14T10:28:03Z</dc:date>
    </item>
  </channel>
</rss>

