<?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: single or multiple spaces followed by keyword in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521585#M4228</link>
    <description>&lt;P&gt;if index(upcase(varname), ' AND ');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to handle separately any cases where And is the first word, and so does not appear with a leading space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use WHERE instead of IF (especially if you are subsetting as part of a SAS procedure).&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 17:52:44 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-12-14T17:52:44Z</dc:date>
    <item>
      <title>single or multiple spaces followed by keyword</title>
      <link>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521569#M4223</link>
      <description>&lt;P&gt;How to select only those records that have the word "AND" with single or multiple spaces before and after it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Standarad&lt;/P&gt;&lt;P&gt;Standarad And Poor&lt;/P&gt;&lt;P&gt;Standarad and&amp;nbsp;&amp;nbsp; Poor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So would like to select the only :&lt;/P&gt;&lt;P&gt;Standarad And Poor&lt;/P&gt;&lt;P&gt;Standarad and&amp;nbsp;&amp;nbsp; Poor&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521569#M4223</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2018-12-14T17:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: single or multiple spaces followed by keyword</title>
      <link>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521585#M4228</link>
      <description>&lt;P&gt;if index(upcase(varname), ' AND ');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to handle separately any cases where And is the first word, and so does not appear with a leading space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use WHERE instead of IF (especially if you are subsetting as part of a SAS procedure).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521585#M4228</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-12-14T17:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: single or multiple spaces followed by keyword</title>
      <link>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521586#M4229</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input text:&amp;amp;$200.;
if prxmatch('m/\sand\s*/i',strip(text));
cards;
Standarad
Standarad And Poor
Standarad and   Poor
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521586#M4229</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-12-14T17:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: single or multiple spaces followed by keyword</title>
      <link>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521592#M4230</link>
      <description>&lt;P&gt;the 'i' modifier in the findw function ignores the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	if findw(varname,'and',' ','i');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 18:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/single-or-multiple-spaces-followed-by-keyword/m-p/521592#M4230</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2018-12-14T18:04:58Z</dc:date>
    </item>
  </channel>
</rss>

