<?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 Proc report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419316#M67804</link>
    <description>&lt;P&gt;Can you underline one word in an ods text =&amp;nbsp; statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;text&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"^S={ font_face = 'Times New Roman' just=j fontweight=light fontsize=12pt color=black}Background:For this project, we are looking for..."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;I would like to ONLY underline the word "Background" above.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2017 19:45:17 GMT</pubDate>
    <dc:creator>nirali514</dc:creator>
    <dc:date>2017-12-07T19:45:17Z</dc:date>
    <item>
      <title>Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419316#M67804</link>
      <description>&lt;P&gt;Can you underline one word in an ods text =&amp;nbsp; statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;text&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"^S={ font_face = 'Times New Roman' just=j fontweight=light fontsize=12pt color=black}Background:For this project, we are looking for..."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;I would like to ONLY underline the word "Background" above.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="arial,helvetica,sans-serif"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 19:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419316#M67804</guid>
      <dc:creator>nirali514</dc:creator>
      <dc:date>2017-12-07T19:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419335#M67807</link>
      <description>&lt;P&gt;Here are 2 options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 1 using inline formatting:&lt;CODE class=" language-sas"&gt; &lt;/CODE&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods text= "^S={ font_face = 'Times New Roman' just=j fontweight=light 
fontsize=12pt color=black textdecoration=underline}Background 
^S={font_face = 'Times New Roman' just=j fontweight=light 
fontsize=12pt color=black}: For this project, we are looking for...";

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Option 2 if you are using RTF then you can use RTF control words to control style:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="UnderlineOneWord.rtf";
ods text= "^S={ font_face = 'Times New Roman' just=j fontweight=light fontsize=12pt color=black protectspecialchars=off}
\ul{Background}\ul0 : For this project, we are looking for...";
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Dec 2017 20:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419335#M67807</guid>
      <dc:creator>lopezr</dc:creator>
      <dc:date>2017-12-07T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419389#M67809</link>
      <description>&lt;P&gt;Theoretically, you could use CSS styles and use a pseudo class:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="hljs xml"&gt;p:first-word{text-decoration:underline;}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but I don't think that is supported.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing;
ods html file="text.html" style=mystyle;
ods pdf file="text.pdf" startpage=never notoc style=mystyle;
ods rtf file="text_trad.rtf" style=mystyle;
ods escapechar='^';

title "January Orders ";
footnote " For All Employees";

ods text="My text 1";

ods text="^S={textdecoration=underline}My^S={} Text 2"; 

data grades;
   input id grade1 grade2 grade3 grade4;
datalines;
1105 1 2 3 4
1106 2 2 2 2
1107 3 3 4 6
;
run;

proc print data=grades;
run;

ods text="My Text 3"; 

ods pdf close;

ods rtf close;

title;
footnote;

proc template;
   delete mystyle;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The key statement there is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then its use with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;^S={textdecoration=underline}My^S={}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if that gets you anywhere.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 22:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419389#M67809</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2017-12-07T22:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419425#M67814</link>
      <description>&lt;P&gt;Thank you, this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 00:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-report/m-p/419425#M67814</guid>
      <dc:creator>nirali514</dc:creator>
      <dc:date>2017-12-08T00:34:38Z</dc:date>
    </item>
  </channel>
</rss>

