<?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 byvariable grouping and selective bold text in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/321799#M17642</link>
    <description>&lt;P&gt;I am using the following sas statement for grouping my by variables, which is color type ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TITLE bold &amp;nbsp;&amp;nbsp; f= Calibri j=c h=12pt&amp;nbsp;&amp;nbsp;&amp;nbsp; "#byval(Type)";&lt;/P&gt;
&lt;P&gt;i get result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: yellow&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: Orange&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i want is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt;yellow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt;orange&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so the values are not bold but the grouping variable is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions !&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Dec 2016 22:12:21 GMT</pubDate>
    <dc:creator>Arora_S</dc:creator>
    <dc:date>2016-12-30T22:12:21Z</dc:date>
    <item>
      <title>byvariable grouping and selective bold text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/321799#M17642</link>
      <description>&lt;P&gt;I am using the following sas statement for grouping my by variables, which is color type ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TITLE bold &amp;nbsp;&amp;nbsp; f= Calibri j=c h=12pt&amp;nbsp;&amp;nbsp;&amp;nbsp; "#byval(Type)";&lt;/P&gt;
&lt;P&gt;i get result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: yellow&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: Orange&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i want is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt;yellow&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Type: &lt;/STRONG&gt;orange&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so the values are not bold but the grouping variable is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions !&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2016 22:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/321799#M17642</guid>
      <dc:creator>Arora_S</dc:creator>
      <dc:date>2016-12-30T22:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: byvariable grouping and selective bold text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/321816#M17644</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Using ODS ESCAPECHAR should be able to do that for you. You'll have to take the instruction for BOLD out of your title statement and move it inside a style override. Something like this (used color so you could see how each ODS ESCAPECHAR style override impacted the title string):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar='^';
proc sort data=sashelp.class out=class;
where age in (12 13 14);
by age name;
run;

options nobyline;

ods html(id=ht) file='c:\temp\style_byline_info.html';
TITLE f=Calibri j=c h=12pt '^{style[fontweight=bold color=navy] #byvar(Age):} ^{style[fontweight=medium color=purple]#byval(Age)}';
proc print data=class;
by age;
var name age height weight sex;
run;
ods html(id=ht) close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code uses SASHELP.CLASS, so you should be able to run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 31 Dec 2016 02:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/321816#M17644</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-12-31T02:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: byvariable grouping and selective bold text</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/322017#M17649</link>
      <description>ods escapecar is life saver</description>
      <pubDate>Mon, 02 Jan 2017 22:03:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/byvariable-grouping-and-selective-bold-text/m-p/322017#M17649</guid>
      <dc:creator>Arora_S</dc:creator>
      <dc:date>2017-01-02T22:03:29Z</dc:date>
    </item>
  </channel>
</rss>

