<?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: How to color the last row in Proc report for ODS? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789181#M25537</link>
    <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel as example data we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things you need to look at in the posted code and make sure it is what you meant to post.&lt;/P&gt;
&lt;P&gt;1) There is nothing creating a summary. I would expect to see some sort of Rbreak after/ summarize; to create a default end of table summary.&lt;/P&gt;
&lt;P&gt;2) You have an ENDCOMP without a compute block start which I expect throws an error and generates no output.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jan 2022 16:31:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-01-10T16:31:32Z</dc:date>
    <item>
      <title>How to color the last row in Proc report for ODS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789145#M25536</link>
      <description>&lt;P&gt;I am trying to color the last row to light blue which is my Total Row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my code to create my Proc report:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report split='~' data=Table3_Final out=Table3_Final_1 spanrows style(header)=[fontweight=bold background=lightblue foreground=black]&lt;BR /&gt;style(column)=[font_face='Calibri' fontsize=11pt] style(summary)=[background=lightblue];&lt;BR /&gt;column Status P4 P3 P2 P1 C2 C3 C4;&lt;BR /&gt;define Status / Display "" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define P1 / Analysis "&amp;amp;Period_1" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define P2 / Analysis "&amp;amp;Period_2" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define P3 / Analysis "&amp;amp;Period_3" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define P4 / Analysis "&amp;amp;Period_4" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define C2/ Analysis "C2" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define C3/ Analysis " C3" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;define C4/ Analysis "C4" style(column)=[cellwidth=25% textalign=center just=decimal];&lt;BR /&gt;title1 justify=l 'Title1';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 16:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789145#M25536</guid>
      <dc:creator>ssitharath0420</dc:creator>
      <dc:date>2022-01-09T16:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the last row in Proc report for ODS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789181#M25537</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel as example data we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things you need to look at in the posted code and make sure it is what you meant to post.&lt;/P&gt;
&lt;P&gt;1) There is nothing creating a summary. I would expect to see some sort of Rbreak after/ summarize; to create a default end of table summary.&lt;/P&gt;
&lt;P&gt;2) You have an ENDCOMP without a compute block start which I expect throws an error and generates no output.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 16:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789181#M25537</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-10T16:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the last row in Proc report for ODS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789218#M25538</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Do you mean something like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class;
  rbreak after / summarize style=header;
  compute after ;
    name = "Total";
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;The RBREAK statement allows to specify style information for the "last" row.&lt;/LI&gt;
&lt;LI&gt;The COMPUTE AFTER fills the name column with the text "Total";&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 10:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789218#M25538</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2022-01-10T10:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the last row in Proc report for ODS?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789230#M25539</link>
      <description>&lt;PRE&gt;You need post some dummy data to let us test your code .


proc report data=sashelp.heart nowd;
column bp_status weight height;
define bp_status/group;
define weight/analysis sum;
define height/analysis sum;

compute height;
if bp_status='Optimal' then 
call define(_row_,'style','style={background=verylightblue}');
endcomp;

run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1641816338790.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67259i4D487723E051C5F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1641816338790.png" alt="Ksharp_0-1641816338790.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 12:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-color-the-last-row-in-Proc-report-for-ODS/m-p/789230#M25539</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-10T12:05:47Z</dc:date>
    </item>
  </channel>
</rss>

