<?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: delete if contains/where contains? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167909#M43495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or sql like&lt;/P&gt;&lt;P&gt;PROC SQL ;&lt;/P&gt;&lt;P&gt;DELETE FROM your.dataset &lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE that_variable CONTAINS '@' ;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contains keyword can be replaced with the symbol ? to make the syntax shorter (not neccessarily clearer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Aug 2014 22:13:42 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2014-08-19T22:13:42Z</dc:date>
    <item>
      <title>delete if contains/where contains?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167907#M43493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to delete observations from my dataset when the entry for a given variable contains a certain character (@).&amp;nbsp; I want to keep all the other observations.&amp;nbsp;&amp;nbsp; This seems to require something between an if-then statement and a where contains statement.&amp;nbsp; I can't seem to find any references to this situation.&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can anyone suggest the best way to do this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167907#M43493</guid>
      <dc:creator>grayab</dc:creator>
      <dc:date>2014-08-19T20:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: delete if contains/where contains?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167908#M43494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if findc(text,'(@)') then delete;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 20:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167908#M43494</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-19T20:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete if contains/where contains?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167909#M43495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or sql like&lt;/P&gt;&lt;P&gt;PROC SQL ;&lt;/P&gt;&lt;P&gt;DELETE FROM your.dataset &lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE that_variable CONTAINS '@' ;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The contains keyword can be replaced with the symbol ? to make the syntax shorter (not neccessarily clearer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 22:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/delete-if-contains-where-contains/m-p/167909#M43495</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-08-19T22:13:42Z</dc:date>
    </item>
  </channel>
</rss>

