<?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: Scanning words with different length in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742413#M232233</link>
    <description>For better understanding ,kindly provide the desired o/p also.But this might help you.&lt;BR /&gt;&lt;BR /&gt;data test;&lt;BR /&gt;input customer &amp;amp; $200.;&lt;BR /&gt;cards;&lt;BR /&gt;Cho0012 (Industrial filling station T/A Caltex mogoboshane)&lt;BR /&gt;cho0013 (Choppies complex supermarket)&lt;BR /&gt;SPA0107 (K.A.W ENTERPRISES (PTY) LTD T/A SPAR MOGODITSHANE)&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;data test1(drop=a b);&lt;BR /&gt;length a $200. c $200.;&lt;BR /&gt;set test;&lt;BR /&gt;a=compress(scan(customer,2, '('),')');&lt;BR /&gt;b=compress(scan(customer,3,'('),')');&lt;BR /&gt;c=catx('',a,b);&lt;BR /&gt;run;</description>
    <pubDate>Wed, 19 May 2021 14:42:29 GMT</pubDate>
    <dc:creator>asuman</dc:creator>
    <dc:date>2021-05-19T14:42:29Z</dc:date>
    <item>
      <title>Scanning words with different length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742391#M232223</link>
      <description>&lt;P&gt;Please help, I want to scan the words that are within the brackets.&lt;/P&gt;&lt;P&gt;Customer&lt;/P&gt;&lt;P&gt;Customer: Cho0012 (Industrial filling station T/A Caltex mogoboshane)&lt;/P&gt;&lt;P&gt;Customer: cho0013 (Choppies complex supermarket)&lt;/P&gt;&lt;P&gt;Customer: SPA0107 (K.A.W ENTERPRISES (PTY) LTD T/A SPAR MOGODITSHANE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;T_me&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 12:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742391#M232223</guid>
      <dc:creator>T_me</dc:creator>
      <dc:date>2021-05-19T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scanning words with different length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742393#M232224</link>
      <description>&lt;P&gt;What is the desired output?&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 12:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742393#M232224</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-19T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scanning words with different length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742413#M232233</link>
      <description>For better understanding ,kindly provide the desired o/p also.But this might help you.&lt;BR /&gt;&lt;BR /&gt;data test;&lt;BR /&gt;input customer &amp;amp; $200.;&lt;BR /&gt;cards;&lt;BR /&gt;Cho0012 (Industrial filling station T/A Caltex mogoboshane)&lt;BR /&gt;cho0013 (Choppies complex supermarket)&lt;BR /&gt;SPA0107 (K.A.W ENTERPRISES (PTY) LTD T/A SPAR MOGODITSHANE)&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;data test1(drop=a b);&lt;BR /&gt;length a $200. c $200.;&lt;BR /&gt;set test;&lt;BR /&gt;a=compress(scan(customer,2, '('),')');&lt;BR /&gt;b=compress(scan(customer,3,'('),')');&lt;BR /&gt;c=catx('',a,b);&lt;BR /&gt;run;</description>
      <pubDate>Wed, 19 May 2021 14:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Scanning-words-with-different-length/m-p/742413#M232233</guid>
      <dc:creator>asuman</dc:creator>
      <dc:date>2021-05-19T14:42:29Z</dc:date>
    </item>
  </channel>
</rss>

