<?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 SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION? in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/559054#M1173</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to use LIKE function in SAS RTDM (CI STUDIO) and we need help about the its syntax.&lt;/P&gt;&lt;P&gt;We are using this function for looking for a substring in a string and we notice that in some cases it works and in other cases not and we can't understand the reason why.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have the following string in input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DS ULT TREATMENT SDP = "Commerciale &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Conto&lt;/STRONG&gt; &lt;/FONT&gt;Corrente Prova Lunghezza Max Sessanta Lung|Commerciale PostePay Evolution Prova Lunghezza Maxm Sessanta|Commerciale Finanziamento Prova Lunghezza Max Sessanta Lungh|Operativa Aggiornamento cellul Prova Lunghezza Maxm Sessanta|MustHave Consenso Privacy Prova Lunghezza Max Sessanta Lungh"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, we tried with the following LIKE operator in a Filter Node: LIKE: %&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Conto&lt;/FONT&gt;&lt;/STRONG&gt;%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 372px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29548iA0A71E853192C86D/image-dimensions/372x221?v=v2" width="372" height="221" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;than we tried with the following LIKE function: LIKE(&amp;lt;&amp;lt;DS ULT TREATMENT SDP&amp;gt;&amp;gt;,"%&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Conto&lt;/STRONG&gt;&lt;/FONT&gt;%").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29549iA33502C6E5901B9D/image-dimensions/375x228?v=v2" width="375" height="228" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 369px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29550iB840039221A450DB/image-dimensions/369x278?v=v2" width="369" height="278" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both cases we didn't receive the expected result since that the Filter Node doesn't allow us to move to the next node even though, as you can see, the searched substring "Conto" exists in the input string (in our case "Commerciale &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Conto&lt;/STRONG&gt; &lt;/FONT&gt;Corrente Prova Lunghezza Max Sessanta Lung|Commerciale PostePay Evolution Prova Lunghezza Maxm Sessanta|Commerciale Finanziamento Prova Lunghezza Max Sessanta Lungh|Operativa Aggiornamento cellul Prova Lunghezza Maxm Sessanta|MustHave Consenso Privacy Prova Lunghezza Max Sessanta Lungh").&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help us to find a solution? Is the function's syntax right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 16:29:56 GMT</pubDate>
    <dc:creator>psmerill</dc:creator>
    <dc:date>2019-05-15T16:29:56Z</dc:date>
    <item>
      <title>SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/559054#M1173</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to use LIKE function in SAS RTDM (CI STUDIO) and we need help about the its syntax.&lt;/P&gt;&lt;P&gt;We are using this function for looking for a substring in a string and we notice that in some cases it works and in other cases not and we can't understand the reason why.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we have the following string in input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DS ULT TREATMENT SDP = "Commerciale &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Conto&lt;/STRONG&gt; &lt;/FONT&gt;Corrente Prova Lunghezza Max Sessanta Lung|Commerciale PostePay Evolution Prova Lunghezza Maxm Sessanta|Commerciale Finanziamento Prova Lunghezza Max Sessanta Lungh|Operativa Aggiornamento cellul Prova Lunghezza Maxm Sessanta|MustHave Consenso Privacy Prova Lunghezza Max Sessanta Lungh"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, we tried with the following LIKE operator in a Filter Node: LIKE: %&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Conto&lt;/FONT&gt;&lt;/STRONG&gt;%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 372px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29548iA0A71E853192C86D/image-dimensions/372x221?v=v2" width="372" height="221" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;than we tried with the following LIKE function: LIKE(&amp;lt;&amp;lt;DS ULT TREATMENT SDP&amp;gt;&amp;gt;,"%&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Conto&lt;/STRONG&gt;&lt;/FONT&gt;%").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29549iA33502C6E5901B9D/image-dimensions/375x228?v=v2" width="375" height="228" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 369px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29550iB840039221A450DB/image-dimensions/369x278?v=v2" width="369" height="278" role="button" title="Capture3.PNG" alt="Capture3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both cases we didn't receive the expected result since that the Filter Node doesn't allow us to move to the next node even though, as you can see, the searched substring "Conto" exists in the input string (in our case "Commerciale &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Conto&lt;/STRONG&gt; &lt;/FONT&gt;Corrente Prova Lunghezza Max Sessanta Lung|Commerciale PostePay Evolution Prova Lunghezza Maxm Sessanta|Commerciale Finanziamento Prova Lunghezza Max Sessanta Lungh|Operativa Aggiornamento cellul Prova Lunghezza Maxm Sessanta|MustHave Consenso Privacy Prova Lunghezza Max Sessanta Lungh").&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help us to find a solution? Is the function's syntax right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 16:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/559054#M1173</guid>
      <dc:creator>psmerill</dc:creator>
      <dc:date>2019-05-15T16:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/567781#M1189</link>
      <description>&lt;P&gt;Re: Filter node.&amp;nbsp; Please review&amp;nbsp;&lt;A style="margin: 0px; padding: 0px; border: 0px; font-weight: 400; font-style: normal; font-size: small; line-height: 1.25em; font-family: Arial, Helvetica, Verdana, sans-serif; text-align: left; text-decoration: none; color: #0066cc; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;" href="http://support.sas.com/kb/55174" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/55174&lt;/A&gt;&amp;nbsp; and check whether you have the latest hotfixes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can certainly create a calculated variable - for example, use the FIND function&amp;nbsp; find(&amp;lt;&amp;lt;variable&amp;gt;&amp;gt;, 'Contol', 1, 'i')&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the documentation for FIND function. &amp;nbsp; If you need a more complex regex matching there are functions like PRXMATCH to help you with those. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not see support for LIKE function for the calculated variable - at least not in the version I am using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is always helpful to know the version of the product you are working with and your database vendor/version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/567781#M1189</guid>
      <dc:creator>RajaMarla</dc:creator>
      <dc:date>2019-06-20T21:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/573433#M1208</link>
      <description>&lt;P&gt;Hi Paulo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use asterix (*) with the LIKE operator in the Filter node, you should get the outcome you are looking for.&lt;/P&gt;
&lt;P&gt;LIKE: *Conto*&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 05:09:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/573433#M1208</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2019-07-15T05:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/580753#M1239</link>
      <description>&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We tried to use&amp;nbsp;asterix (*) with the LIKE operator in the Filter node, but&amp;nbsp;we didn't receive the expected result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:48:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/580753#M1239</guid>
      <dc:creator>psmerill</dc:creator>
      <dc:date>2019-08-13T10:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/580754#M1240</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We created a calculated variable with the FIND function and we received the expected result.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestion,&lt;BR /&gt;Paolo</description>
      <pubDate>Tue, 13 Aug 2019 10:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/580754#M1240</guid>
      <dc:creator>psmerill</dc:creator>
      <dc:date>2019-08-13T10:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS - RTDM (CI STUDIO): How does it work LIKE FUNCTION?</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/667011#M1575</link>
      <description>I hope this is already answered but just making comment rather than using % you can use * for string match with Like function.&lt;BR /&gt;e.g Like: *Search1*</description>
      <pubDate>Sun, 05 Jul 2020 13:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-RTDM-CI-STUDIO-How-does-it-work-LIKE-FUNCTION/m-p/667011#M1575</guid>
      <dc:creator>ravindrrapaal</dc:creator>
      <dc:date>2020-07-05T13:18:55Z</dc:date>
    </item>
  </channel>
</rss>

