<?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 - colors do not show in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707419#M26501</link>
    <description>&lt;P&gt;Include style in proc format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value pctf 
      .=' ~S={background=white}' 
     low-&amp;lt;0.1='~S={background=lightmoderatered } &amp;lt;10%' 
      0.1-high='~S={background=green } &amp;gt;10%';
run;
ods escapechar='~';
proc report data=pdf1 nowd;
    columns region teststed dato, ventetid;
    define region/group;
    define teststed/group;
    define dato/across order=internal format= ddmmyyd10.;
    define ventetid/sum format=pctf&lt;STRONG&gt;60&lt;/STRONG&gt;.;  
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Dec 2020 12:26:06 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-12-21T12:26:06Z</dc:date>
    <item>
      <title>Proc report - colors do not show</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707284#M26487</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code for a proc report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have stated that I want some colors, but they do not show in the expected output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I have shown the ouput below - I want to remove the row with the "ventetid" labels - is that possible?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro many_col;
    proc sql noprint;
        select distinct dato into :ncols from pdf1;
    quit;
proc format;
    value pctf .=' ' low-&amp;lt;0.1='&amp;lt;10%' 0.1-high='&amp;gt;10%';
    value colorf .=white low-&amp;lt;0.1=lightmoderatered 0.1-high=Steel;
run;
proc report data=pdf1;
    columns region teststed dato, ventetid;
    define region/group;
    define teststed/group;
    define dato/across order=internal format= ddmmyyd10.;
    define ventetid/sum format=pctf5.;
    compute ventetid;
          %do i=1 %to &amp;amp;ncols;
               call define("_c%eval(&amp;amp;i+2)_",'style','style={background=colorf.}');
          %end;
      endcompute;
	  
run;
%mend;

%many_col&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmea_1-1608490579770.png"&gt;&lt;img src="https://communities.sas.com/skins/images/8D8B612AA6AB1DC7E9A0812281D56E02/responsive_peak/images/image_not_found.png" alt="mmea_1-1608490579770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also is it possible in the proc report code to divide the variable "teststed" up in two other groups that will be based on the observations under "teststed" - so e.g. if "teststed" includes something with XXXX then put it in under a new label called "EXAMPLE" etc. So basically under each "region" i want two groups of variables with matching observations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope it makes sense &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 18:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707284#M26487</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2020-12-20T18:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report - colors do not show</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707290#M26488</link>
      <description>&lt;P&gt;There's no need to put this in a new thread, when it is truly a continuation of the &lt;A href="https://communities.sas.com/t5/New-SAS-User/How-to-make-a-fancy-PDF-EXCEL-output/td-p/707161/page/2" target="_self"&gt;other thread&lt;/A&gt;. MODERATORS, please merge this with the other thread.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 19:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707290#M26488</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-12-20T19:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report - colors do not show</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707419#M26501</link>
      <description>&lt;P&gt;Include style in proc format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value pctf 
      .=' ~S={background=white}' 
     low-&amp;lt;0.1='~S={background=lightmoderatered } &amp;lt;10%' 
      0.1-high='~S={background=green } &amp;gt;10%';
run;
ods escapechar='~';
proc report data=pdf1 nowd;
    columns region teststed dato, ventetid;
    define region/group;
    define teststed/group;
    define dato/across order=internal format= ddmmyyd10.;
    define ventetid/sum format=pctf&lt;STRONG&gt;60&lt;/STRONG&gt;.;  
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 12:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707419#M26501</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-21T12:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report - colors do not show</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707525#M26513</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I do not believe this requires a SAS macro program or CALL DEFINE or using ODS ESCAPECHAR. This works for me with a simple format, specified correctly and a single style override in the DEFINE statement for HEIGHT and WEIGHT:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1608569504724.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52939i7C2D34FD91CEF2C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1608569504724.png" alt="Cynthia_sas_0-1608569504724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this gives you some idea of the most straightforward way to use a format and a style override with PROC REPORT to color cells.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 16:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-report-colors-do-not-show/m-p/707525#M26513</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-12-21T16:52:56Z</dc:date>
    </item>
  </channel>
</rss>

