<?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 delete rows when a variable contain a string in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541541#M74139</link>
    <description>&lt;P&gt;I want to delete rows when a variable name contain a string (INFRA)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 don infra&lt;/P&gt;
&lt;P&gt;2 waw&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 sik infra&lt;/P&gt;
&lt;P&gt;4 dfh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id name&lt;/P&gt;
&lt;P&gt;2 waw&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 dfh&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 19:11:37 GMT</pubDate>
    <dc:creator>sasphd</dc:creator>
    <dc:date>2019-03-08T19:11:37Z</dc:date>
    <item>
      <title>delete rows when a variable contain a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541541#M74139</link>
      <description>&lt;P&gt;I want to delete rows when a variable name contain a string (INFRA)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 don infra&lt;/P&gt;
&lt;P&gt;2 waw&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3 sik infra&lt;/P&gt;
&lt;P&gt;4 dfh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id name&lt;/P&gt;
&lt;P&gt;2 waw&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4 dfh&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541541#M74139</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2019-03-08T19:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: delete rows when a variable contain a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541542#M74140</link>
      <description>&lt;P&gt;Does "infra" vs. "INFRA" make a difference?&amp;nbsp; One possibility:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;if index(upcase(name), "INFRA") = 0;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541542#M74140</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-08T19:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: delete rows when a variable contain a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541547#M74141</link>
      <description>&lt;P&gt;No it does not matter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;however the program does not work. what I want is to delete rows containing the string "infra"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541547#M74141</guid>
      <dc:creator>sasphd</dc:creator>
      <dc:date>2019-03-08T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete rows when a variable contain a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541549#M74142</link>
      <description>&lt;P&gt;So why do you say it does not work?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541549#M74142</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-08T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: delete rows when a variable contain a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541552#M74143</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id name &amp;amp; $20.;
cards;
1 don infra
2 waw 
3 sik infra
4 dfh
;

data want;
set have;
if not ^^find(name,'infra','i');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541552#M74143</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-08T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: delete rows when a variable contain a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541555#M74145</link>
      <description>&lt;P&gt;Or with FINDW&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id name &amp;amp; $20.;
cards;
1 don infra
2 waw 
3 sik infra
4 dfh
;

data want;
set have;
if not ^^findw(name,'infra',' ','i');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-rows-when-a-variable-contain-a-string/m-p/541555#M74145</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-08T19:41:11Z</dc:date>
    </item>
  </channel>
</rss>

