<?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: Can you set style of PROC REPORT summary row to match a different existing style? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-you-set-style-of-PROC-REPORT-summary-row-to-match-a/m-p/552443#M153570</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;Yes, you are exactly on the right track. You could:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc report data=sashelp.class&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(summary)=Header;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;rbreak after / summarize style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2019 13:59:39 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-04-19T13:59:39Z</dc:date>
    <item>
      <title>Can you set style of PROC REPORT summary row to match a different existing style?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-set-style-of-PROC-REPORT-summary-row-to-match-a/m-p/552113#M153569</link>
      <description>&lt;P&gt;I'd like to set the style of the summary (total) row of PROC REPORT to match the existing style of the header row in a PROC REPORT output. As an example, here's starting PROC REPORT code:&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;
  columns sex weight;
  define sex / group;
  define weight / analysis mean f=5.2;
  rbreak after / summarize;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using the default template -- HTMLBlue&amp;nbsp; -&amp;nbsp; so output looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic1.PNG" style="width: 127px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28791i244C9C4267836193/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic1.PNG" alt="pic1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, I'd like to make the summary row resemble the header row -- so I opened the template, found colors used in "header" item, and copied them to my PROC REPORT code, like this:&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;
  columns sex weight;
  define sex / group;
  define weight / analysis mean f=5.2;
  rbreak after / summarize style=[fontweight=bold
    color=cx112277 backgroundcolor=cxEDF2F9];
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and gives me what I want:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic2.PNG" style="width: 127px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28792iC4C71B94FC569397/image-size/large?v=v2&amp;amp;px=999" role="button" title="pic2.PNG" alt="pic2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But is there a better way? Can I reference the existing "header" style on the rbreak line, instead of hard-coding its attributes, like I did?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-set-style-of-PROC-REPORT-summary-row-to-match-a/m-p/552113#M153569</guid>
      <dc:creator>bnawrocki</dc:creator>
      <dc:date>2019-04-18T13:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can you set style of PROC REPORT summary row to match a different existing style?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-you-set-style-of-PROC-REPORT-summary-row-to-match-a/m-p/552443#M153570</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Yes, you are exactly on the right track. You could:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;proc report data=sashelp.class&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(summary)=Header;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;rbreak after / summarize style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 13:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-you-set-style-of-PROC-REPORT-summary-row-to-match-a/m-p/552443#M153570</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-04-19T13:59:39Z</dc:date>
    </item>
  </channel>
</rss>

