<?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: Italicize a partial string in Proc Report Compute Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Italicize-a-partial-string-in-Proc-Report-Compute-Statement/m-p/788964#M252386</link>
    <description>&lt;P&gt;Use the ODS ESCAPECHAR command and the appropriate modifications of you text string. Examples: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p11xia2ltavr8ln17srq8vn4rnqc.htm#p0xwm6sfkghhpsn1gi5ky18f6qkx" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p11xia2ltavr8ln17srq8vn4rnqc.htm#p0xwm6sfkghhpsn1gi5ky18f6qkx&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 21:18:48 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-01-07T21:18:48Z</dc:date>
    <item>
      <title>Italicize a partial string in Proc Report Compute Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Italicize-a-partial-string-in-Proc-Report-Compute-Statement/m-p/788944#M252381</link>
      <description>&lt;P&gt;I am formatting a report in Proc Report on SAS Viya. I have a column of data that has several Pathogen names. I need to italicize part of the name. For instance, for Salmonella spp., I only need the Salmonella portion italicized. I am using the following compute command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute Pathogen ;&lt;BR /&gt;if Pathogen="Salmonella spp." then do ;&lt;BR /&gt;Pathogen='^{style[fontstyle=italic]Salmonella}^';&lt;BR /&gt;end ;&lt;BR /&gt;endcomp ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works except it is truncating my variable to show only Salmo in italics. Anybody know why it isn't printing the whole word? Once I fix that, how do I add the "spp." back on in non-italics? THANKS!!! (should also mention I'm using ods escapechar="^")&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 19:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Italicize-a-partial-string-in-Proc-Report-Compute-Statement/m-p/788944#M252381</guid>
      <dc:creator>jmck</dc:creator>
      <dc:date>2022-01-07T19:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Italicize a partial string in Proc Report Compute Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Italicize-a-partial-string-in-Proc-Report-Compute-Statement/m-p/788964#M252386</link>
      <description>&lt;P&gt;Use the ODS ESCAPECHAR command and the appropriate modifications of you text string. Examples: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p11xia2ltavr8ln17srq8vn4rnqc.htm#p0xwm6sfkghhpsn1gi5ky18f6qkx" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p11xia2ltavr8ln17srq8vn4rnqc.htm#p0xwm6sfkghhpsn1gi5ky18f6qkx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 21:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Italicize-a-partial-string-in-Proc-Report-Compute-Statement/m-p/788964#M252386</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-01-07T21:18:48Z</dc:date>
    </item>
  </channel>
</rss>

