<?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 bold a word in sentence in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/520758#M141245</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar requirement as mentioned above.In my PDF report, In a table I have a column named "Keyword" which contains a word and a second column named "Sentence" which contains text.I want to highlight the "Keyword"&amp;nbsp; inside the "Sentence" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Keyword&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Sentence&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;portfolio&lt;/TD&gt;&lt;TD&gt;A strategy whereby investors or &lt;FONT color="#00FF00"&gt;portfolio&lt;/FONT&gt; managers increase or decrease holdings in an entire industry, rather than buying or selling individual stocks from that particular industry.&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;redeployment&lt;/TD&gt;&lt;TD&gt;Rebalancing almost always entails the sale of high-priced/low-value securities and the &lt;FONT color="#00FF00"&gt;redeployment&lt;/FONT&gt; of the proceeds into low-priced/high-value or out-of-favor securities.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SAS version:9.4&lt;/P&gt;&lt;P&gt;Destination of choice: PDF&lt;/P&gt;&lt;P&gt;Report procedure of choice: Proc report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Prudhvi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Dec 2018 11:46:04 GMT</pubDate>
    <dc:creator>sunny999</dc:creator>
    <dc:date>2018-12-12T11:46:04Z</dc:date>
    <item>
      <title>How to bold a word in sentence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/73474#M15828</link>
      <description>I have a sentence like '' My name is XYZ''&lt;BR /&gt;
&lt;BR /&gt;
I want to make bold the word XYZ &lt;BR /&gt;
&lt;BR /&gt;
how it possible by SAS &lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
&lt;BR /&gt;
Leena</description>
      <pubDate>Mon, 05 Apr 2010 17:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/73474#M15828</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-05T17:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold a word in sentence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/73475#M15829</link>
      <description>Please explain a bit more how you intend to use the data - output in a report, what format (RTF, HTML, PDF)?  SAS version would also help?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 05 Apr 2010 17:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/73475#M15829</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-04-05T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold a word in sentence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/73476#M15830</link>
      <description>Hi:&lt;BR /&gt;
  The concept of a variable and the value for a variable isn't the same in SAS as it is in Excel or Word. For example, in Word or Excel, you would type a sentence and then highlight the word you wanted to have bold and then click the B (bold icon) on the toolbar.&lt;BR /&gt;
&lt;BR /&gt;
  SAS data values are different from what you see in Word or Excel. SAS data values do not have colors or fonts applied to them as they are stored in the SAS data set. However, when you create a REPORT that shows the data values, you can apply different colors and fonts to either a whole data value or part of a data value. The destination that you choose for your report must, however, support style changes -- for example -- in the LISTING or Output window, style changes (such as changing fonts, colors or font weight (bold) are not supported. But in destinations like HTML, RTF or PDF, you can write reports which have an entire cell in a different color or font or just have 1 word in a data value in a different color or font.&lt;BR /&gt;
 &lt;BR /&gt;
  The technique that you use will depend on the report procedure that you're going to use. If you were going to use PROC PRINT or PROC TABULATE, then you might need to "pre-process" your data value ahead of time, if you only wanted 1 word in a data value to have different formatting.&lt;BR /&gt;
&lt;BR /&gt;
  If you were going to use PROC REPORT, then you could "pre-process" your data or you could make your change in a COMPUTE block.&lt;BR /&gt;
&lt;BR /&gt;
  In either case, the feature that allows you to apply "in-line" formatting to just one word in a data value is through the use of the ODS ESCAPECHAR capability. As Scott said, it would be useful to know:&lt;BR /&gt;
-- what version of SAS (9.1.3 or 9.2) -- because there are different ESCAPECHAR syntaxes&lt;BR /&gt;
-- what is your destination of choice (RTF, PDF, HTML)&lt;BR /&gt;
-- what is your report procedure of choice&lt;BR /&gt;
-- what code are you working with already&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 05 Apr 2010 17:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/73476#M15830</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-05T17:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold a word in sentence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/520758#M141245</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar requirement as mentioned above.In my PDF report, In a table I have a column named "Keyword" which contains a word and a second column named "Sentence" which contains text.I want to highlight the "Keyword"&amp;nbsp; inside the "Sentence" column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Keyword&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Sentence&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;portfolio&lt;/TD&gt;&lt;TD&gt;A strategy whereby investors or &lt;FONT color="#00FF00"&gt;portfolio&lt;/FONT&gt; managers increase or decrease holdings in an entire industry, rather than buying or selling individual stocks from that particular industry.&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;redeployment&lt;/TD&gt;&lt;TD&gt;Rebalancing almost always entails the sale of high-priced/low-value securities and the &lt;FONT color="#00FF00"&gt;redeployment&lt;/FONT&gt; of the proceeds into low-priced/high-value or out-of-favor securities.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SAS version:9.4&lt;/P&gt;&lt;P&gt;Destination of choice: PDF&lt;/P&gt;&lt;P&gt;Report procedure of choice: Proc report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Prudhvi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/520758#M141245</guid>
      <dc:creator>sunny999</dc:creator>
      <dc:date>2018-12-12T11:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold a word in sentence</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/844161#M333734</link>
      <description>&lt;P&gt;I am using SAS EG (Version:&amp;nbsp;8.3 (8.3.0.103) (64-bit))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I bold only the first word (In the following ods pdf text=&amp;nbsp; statement, "Introduction") in my text in a report? Please see the code below.&lt;/P&gt;
&lt;PRE&gt;ods _all_ close;
ods escapechar='^';
ods pdf style=pearl
file="\\--------------abc.pdf" 
notoc startpage=no NOGTITLE NOGFOOTNOTE style=htmlblue;
options  nodate number leftmargin=.5in rightmargin=.5in;
ods pdf text= "^S={ font_size= 9pt}Introduction: For example, in Word or Excel, you would type a sentence and then highlight the word you wanted to have bold and then click the B (bold icon) on the toolbar. SAS data values are different from what you see in Word or Excel. SAS data values do not have colors or fonts applied to them as they are stored in the SAS data set.";
ods pdf close;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-bold-a-word-in-sentence/m-p/844161#M333734</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-11-14T16:38:04Z</dc:date>
    </item>
  </channel>
</rss>

