<?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 style attributes in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225780#M40568</link>
    <description>&lt;P&gt;How do I apply style attributes to the by-group label in proc report?&amp;nbsp;I want to reduce the font size&amp;nbsp;and can see how to do that for just about every aspect of the report except the by-group label.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2015 07:55:25 GMT</pubDate>
    <dc:creator>AS1</dc:creator>
    <dc:date>2015-09-16T07:55:25Z</dc:date>
    <item>
      <title>style attributes in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225780#M40568</link>
      <description>&lt;P&gt;How do I apply style attributes to the by-group label in proc report?&amp;nbsp;I want to reduce the font size&amp;nbsp;and can see how to do that for just about every aspect of the report except the by-group label.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 07:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225780#M40568</guid>
      <dc:creator>AS1</dc:creator>
      <dc:date>2015-09-16T07:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: style attributes in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225790#M40571</link>
      <description>&lt;P&gt;Good question, took me a while to figure it out. &amp;nbsp;You need two components, first turn off the default byline printing in the options statement, then add a title statement in with the font/size info:&lt;/P&gt;&lt;P&gt;ods rtf file="...\temp.rtf" style=statistical;&lt;BR /&gt;options nobyline; /* This is key to note have default printing */&lt;BR /&gt;proc report data=sashelp.cars nowd;&lt;BR /&gt;&amp;nbsp; columns make model type origin;&lt;BR /&gt;&amp;nbsp; by make;&lt;BR /&gt;&amp;nbsp; title1 f='Sas Monospace' h=8pt '#byvar(make)' ; /* Set your font, size etc. here */&lt;BR /&gt;&amp;nbsp; define make / noprint;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To note, I generally create my reports slightly different, and if you want a different approach try the below - it can be more flexible if you want to change fonts, or display, or pretty much anything between by groups:&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table LOOP as&lt;BR /&gt;&amp;nbsp; select distinct MAKE&lt;BR /&gt;&amp;nbsp; from SASHELP.CARS;&lt;BR /&gt;quit;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ods rtf file="s:\temp\rob\temp.rtf" style=statistical;&lt;BR /&gt;data _null_;&lt;BR /&gt;&amp;nbsp; set loop;&lt;BR /&gt;&amp;nbsp; call execute('title1 h=6pt font="SAS Monospace" "'||strip(make)||'";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;proc report data=sashelp.cars nowd;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;where make="'||strip(make)||'";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;columns model type origin;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;run;');&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 10:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225790#M40571</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-09-16T10:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: style attributes in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225811#M40575</link>
      <description>&lt;P&gt;The byline style is not controlled by PROC REPORT. Instead, it's part of the document style. To change the byline style you'll have to modify the Byline class in&amp;nbsp;the&amp;nbsp;document&amp;nbsp;style you're using (HTMLBlue, Pearl, whatever). You can either make a copy of the entire style template and change Byline, or (easier) just create a new style that has the document style as its parent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the &lt;A href="http://support.sas.com/documentation/cdl/en/odsug/67921/HTML/default/viewer.htm#p1j96lhuryai15n1ax8qbodgws4j.htm" target="_blank"&gt;ODS user's guide&lt;/A&gt;, Kevin Smith's &lt;A href="http://www.sas.com/store/prodBK_62007_en.html" target="_self"&gt;book&lt;/A&gt;,&amp;nbsp;and the&amp;nbsp;SGF papers about ODS styles.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 12:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/style-attributes-in-proc-report/m-p/225811#M40575</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2015-09-16T12:26:04Z</dc:date>
    </item>
  </channel>
</rss>

