<?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 find exact two string in a field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/find-exact-two-string-in-a-field/m-p/633132#M187803</link>
    <description>&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;Hi ,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I am looking for quick method to exactly find&amp;nbsp; two string "CASE" AND PARTY in a field.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Example:my data looks like below and I want to pick count for below highlighted records having PARTY and CASE mentioned in the string.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;CASE_11233108000001 1&lt;BR /&gt;CASE_11233108000004 1&lt;BR /&gt;CASE_11233108000005 1&lt;BR /&gt;CASE_11233108000006 1&lt;BR /&gt;CASE_11233108000013 1&lt;BR /&gt;CASE_11233108000015 1&lt;BR /&gt;CASE_11233108000016 1&lt;BR /&gt;CASE_11233108000018 1&lt;BR /&gt;CASE_11233108000019 1&lt;BR /&gt;CASE_11233108000020 1&lt;BR /&gt;INCIDENT_51233108000001 3&lt;BR /&gt;INCIDENT_51233108000004 3&lt;BR /&gt;INCIDENT_51233108000005 3&lt;BR /&gt;INCIDENT_51233108000006 3&lt;BR /&gt;INCIDENT_51233108000013 3&lt;BR /&gt;INCIDENT_51233108000015 3&lt;BR /&gt;INCIDENT_51233108000016 3&lt;BR /&gt;INCIDENT_51233108000018 3&lt;BR /&gt;INCIDENT_51233108000019 3&lt;BR /&gt;INCIDENT_51233108000020 3&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X234306CASE_11233108000005 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X2367375CASE_11233108000004 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X2412976CASE_11233108000006 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X242762CASE_11233108000001 1&lt;/FONT&gt;&lt;BR /&gt;PARTY_X234306INCIDENT_51233108000005 1&lt;BR /&gt;PARTY_X2367375INCIDENT_51233108000004 1&lt;BR /&gt;PARTY_X2412976INCIDENT_51233108000006 1&lt;BR /&gt;PARTY_X242762INCIDENT_51233108000001 1&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 02:10:05 GMT</pubDate>
    <dc:creator>shuchidxt_gmail_com</dc:creator>
    <dc:date>2020-03-19T02:10:05Z</dc:date>
    <item>
      <title>find exact two string in a field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-exact-two-string-in-a-field/m-p/633132#M187803</link>
      <description>&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;Hi ,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I am looking for quick method to exactly find&amp;nbsp; two string "CASE" AND PARTY in a field.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Example:my data looks like below and I want to pick count for below highlighted records having PARTY and CASE mentioned in the string.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;CASE_11233108000001 1&lt;BR /&gt;CASE_11233108000004 1&lt;BR /&gt;CASE_11233108000005 1&lt;BR /&gt;CASE_11233108000006 1&lt;BR /&gt;CASE_11233108000013 1&lt;BR /&gt;CASE_11233108000015 1&lt;BR /&gt;CASE_11233108000016 1&lt;BR /&gt;CASE_11233108000018 1&lt;BR /&gt;CASE_11233108000019 1&lt;BR /&gt;CASE_11233108000020 1&lt;BR /&gt;INCIDENT_51233108000001 3&lt;BR /&gt;INCIDENT_51233108000004 3&lt;BR /&gt;INCIDENT_51233108000005 3&lt;BR /&gt;INCIDENT_51233108000006 3&lt;BR /&gt;INCIDENT_51233108000013 3&lt;BR /&gt;INCIDENT_51233108000015 3&lt;BR /&gt;INCIDENT_51233108000016 3&lt;BR /&gt;INCIDENT_51233108000018 3&lt;BR /&gt;INCIDENT_51233108000019 3&lt;BR /&gt;INCIDENT_51233108000020 3&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X234306CASE_11233108000005 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X2367375CASE_11233108000004 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X2412976CASE_11233108000006 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff6600"&gt;PARTY_X242762CASE_11233108000001 1&lt;/FONT&gt;&lt;BR /&gt;PARTY_X234306INCIDENT_51233108000005 1&lt;BR /&gt;PARTY_X2367375INCIDENT_51233108000004 1&lt;BR /&gt;PARTY_X2412976INCIDENT_51233108000006 1&lt;BR /&gt;PARTY_X242762INCIDENT_51233108000001 1&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 02:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-exact-two-string-in-a-field/m-p/633132#M187803</guid>
      <dc:creator>shuchidxt_gmail_com</dc:creator>
      <dc:date>2020-03-19T02:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: find exact two string in a field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-exact-two-string-in-a-field/m-p/633134#M187804</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data WANT; 
  SET HAVE;
  COUNT + ( index(VAR,'PARTY') &amp;amp; index(VAR,'CASE') );
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Mar 2020 02:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-exact-two-string-in-a-field/m-p/633134#M187804</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-03-19T02:19:08Z</dc:date>
    </item>
  </channel>
</rss>

