<?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: Call define using conditionally  in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743702#M232901</link>
    <description>&lt;P&gt;You should show what you have tried in code and provide some actual example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are going to have to break the string apart so style elements can be supplied to just part of the string and may not be a trivial activity depending on the actual values you want highlighted.&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 21:12:30 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-05-25T21:12:30Z</dc:date>
    <item>
      <title>Call define using conditionally  in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743700#M232899</link>
      <description>&lt;P&gt;Hi All ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable and this variable is printed using proc report. Using call define to highlight the particular value of the entire string. But call define is highlighting the entire observation instead of particular string. From the below example I have a string "I know SAS programming". In this string i need to highlight only the SAS keyword&amp;nbsp; and this word is present in another variable to differentiate this in the original string. Call define is not allowing to highlight particular keyword in the string. Any suggestion/alternative to highlight only a specific word in the string as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data compare;&lt;BR /&gt;length str1 $64;&lt;BR /&gt;str='I know SAS programming';&lt;BR /&gt;str1='SAS*';&lt;BR /&gt;output;&lt;BR /&gt;str='Python programming ac';&lt;BR /&gt;str1='Python*';&lt;BR /&gt;output;&lt;BR /&gt;str ='SAS and R programming' ;&lt;BR /&gt;str1='SAS and R*';&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Required output: Highlighting&amp;nbsp;only the specified keywords from another variable&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE width="296"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="91"&gt;Str1&lt;/TD&gt;
&lt;TD width="205"&gt;Str2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;SAS*&lt;/TD&gt;
&lt;TD&gt;I know &lt;FONT color="#800000"&gt;&lt;STRONG&gt;SAS&lt;/STRONG&gt;&lt;/FONT&gt; programming&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Python*&lt;/TD&gt;
&lt;TD&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;Python&lt;/STRONG&gt;&lt;/FONT&gt; programming&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;SAS and R*&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;SAS and R&lt;/FONT&gt;&lt;/STRONG&gt; programming&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 21:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743700#M232899</guid>
      <dc:creator>keen_sas</dc:creator>
      <dc:date>2021-05-25T21:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call define using conditionally  in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743702#M232901</link>
      <description>&lt;P&gt;You should show what you have tried in code and provide some actual example data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are going to have to break the string apart so style elements can be supplied to just part of the string and may not be a trivial activity depending on the actual values you want highlighted.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 21:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743702#M232901</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-25T21:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Call define using conditionally  in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743709#M232906</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16518"&gt;@keen_sas&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at this post:&amp;nbsp;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlight-specific-text-within-a-cell-from-proc-report/td-p/554361" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Highlight-specific-text-within-a-cell-from-proc-report/td-p/554361&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that post explains how to do just what you're asking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 22:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-define-using-conditionally-in-proc-report/m-p/743709#M232906</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-05-25T22:03:15Z</dc:date>
    </item>
  </channel>
</rss>

