<?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 make part of the variable bold in report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/488005#M127188</link>
    <description>&lt;P&gt;Thanks so much vince_sas. It's working.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Aug 2018 15:50:48 GMT</pubDate>
    <dc:creator>jk8668</dc:creator>
    <dc:date>2018-08-18T15:50:48Z</dc:date>
    <item>
      <title>How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486158#M126437</link>
      <description>&lt;P&gt;Hi, please let me know if anyone knows how to do the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am combining 2 variables (Variable1 and Variable2) and creating a new variable. I am using this New variable in generating RTF file.&lt;/P&gt;&lt;P&gt;How can I make part of this New variable (Variable 2) in BOLD in the RTF file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Variable= Variable1+ &lt;STRONG&gt;Variable 2&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 15:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486158#M126437</guid>
      <dc:creator>jk8668</dc:creator>
      <dc:date>2018-08-12T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486184#M126455</link>
      <description>The closest answer I found is on this link: &lt;A href="http://www2.sas.com/proceedings/forum2007/151-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/151-2007.pdf&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;However, when you output the rtf file and open it with microsoft word, you should be able to use the bold option I suppose. Hope this helps.</description>
      <pubDate>Sun, 12 Aug 2018 20:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486184#M126455</guid>
      <dc:creator>Dinesh2</dc:creator>
      <dc:date>2018-08-12T20:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486334#M126528</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Does this give you the desired result?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*  Close all open ODS destinations;

ods _all_ close;

*  Create the sample data;

data work.test;
new_variable = 'This text is normal weight ' ||
               '^{style [font_weight=bold]and this text is bold}';
run;

*  Define the escape character;

ods escapechar='^';

*  Create the output using various destinations;

ods html  file='test.html' path='C:\temp';
ods pdf   file='C:\temp\test.pdf';
ods rtf   file='C:\temp\test.rtf';
ods Excel file='C:\temp\test.xlsx';

proc print data=work.test; run; quit;

ods _all_ close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 11:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486334#M126528</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-08-13T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486402#M126552</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;Vince.&lt;/P&gt;&lt;P&gt;It's not working for my scenario. The variable is not resolving in the RTF file, it's just printing the variable name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For ex: I am combining AGE and SEX variables and creating new variable AGESEX. When I generate an RTF file, I want SEX part in BOLD and age in normal font.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I used your code to generate&amp;nbsp;RTF, &amp;nbsp;instead of printing the values of SEX (Male or Female), it was printed as SEX in BOLD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;SUBJECT&amp;nbsp; AGESEX&lt;/P&gt;&lt;P&gt;1&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;&amp;nbsp;&amp;nbsp; 43&lt;STRONG&gt;SEX&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2&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;&amp;nbsp;&amp;nbsp; 23&lt;STRONG&gt;SEX&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3&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;&amp;nbsp;&amp;nbsp; 32&lt;STRONG&gt;SEX&lt;/STRONG&gt;&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>Mon, 13 Aug 2018 16:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486402#M126552</guid>
      <dc:creator>jk8668</dc:creator>
      <dc:date>2018-08-13T16:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486408#M126557</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Try this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*  Close all open ODS destinations;

ods _all_ close;

*  Create the sample data;

data work.class;
set sashelp.class;
length agesex $100;
agesex = strip(put(age, best.)) ||
               '^{style [font_weight=bold]' || strip(sex) || '}';
run;

*  Define the escape character;

ods escapechar='^';

*  Create the output using various destinations;

ods html  file='test.html' path='C:\temp';
ods pdf   file='C:\temp\test.pdf';
ods rtf   file='C:\temp\test.rtf';
ods Excel file='C:\temp\test.xlsx';

proc print data=work.class; 
  var agesex;
run; quit;

ods _all_ close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 16:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/486408#M126557</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-08-13T16:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/488005#M127188</link>
      <description>&lt;P&gt;Thanks so much vince_sas. It's working.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 15:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/488005#M127188</guid>
      <dc:creator>jk8668</dc:creator>
      <dc:date>2018-08-18T15:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make part of the variable bold in report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/488006#M127189</link>
      <description>Thanks Dinesh</description>
      <pubDate>Sat, 18 Aug 2018 15:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-part-of-the-variable-bold-in-report/m-p/488006#M127189</guid>
      <dc:creator>jk8668</dc:creator>
      <dc:date>2018-08-18T15:53:09Z</dc:date>
    </item>
  </channel>
</rss>

