<?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 Extracting specific text from observation value in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Extracting-specific-text-from-observation-value/m-p/198666#M2616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I am trying to retrieve all observations where the text 'Beautiful' appear within the observation value. My problem is the text &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'Beautiful' sometimes appear as lower case (beautiful) and sometimes at the beginning and sometimes in the middle of the sentence. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This is the code i wrote and they are not working (both sas and sql). can someone help please. Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt; /*Following code bring everything except when the word 'beautiful' appear in the middle of the sentence*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data out;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;where desc like ("%Died%");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Following code doesn't work at all.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following code&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table out as&lt;/P&gt;&lt;P&gt;select * from have where desc in ("%Died%");&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2015 19:44:09 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2015-08-13T19:44:09Z</dc:date>
    <item>
      <title>Extracting specific text from observation value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Extracting-specific-text-from-observation-value/m-p/198666#M2616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I am trying to retrieve all observations where the text 'Beautiful' appear within the observation value. My problem is the text &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'Beautiful' sometimes appear as lower case (beautiful) and sometimes at the beginning and sometimes in the middle of the sentence. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This is the code i wrote and they are not working (both sas and sql). can someone help please. Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt; /*Following code bring everything except when the word 'beautiful' appear in the middle of the sentence*/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data out;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;where desc like ("%Died%");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Following code doesn't work at all.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following code&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table out as&lt;/P&gt;&lt;P&gt;select * from have where desc in ("%Died%");&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 19:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Extracting-specific-text-from-observation-value/m-p/198666#M2616</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-08-13T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting specific text from observation value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Extracting-specific-text-from-observation-value/m-p/198667#M2617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try and subset the data set with a FIND() function and use the modifier that ignores case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11387_pastedImage_0.png" style="width: 478px; height: 103px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 19:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Extracting-specific-text-from-observation-value/m-p/198667#M2617</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-08-13T19:52:08Z</dc:date>
    </item>
  </channel>
</rss>

