<?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: Clarification on deleting observations from dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117098#M32275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And moreover if you want to do it through dataset then below is the code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;data final;&lt;/P&gt;&lt;P&gt;set new;&lt;/P&gt;&lt;P&gt;if index(COMBO,'Low') &amp;gt;0 then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Daman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 10:44:40 GMT</pubDate>
    <dc:creator>damanaulakh88</dc:creator>
    <dc:date>2013-02-21T10:44:40Z</dc:date>
    <item>
      <title>Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117096#M32273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to delete an observation where under the variable "Combo" the word "Low" is found, in any combination with other words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable: Combo&lt;/P&gt;&lt;P&gt;observation: Low_A&lt;/P&gt;&lt;P&gt;observation: B_Low&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above observations should be removed, because the word "Low" is there, under the "Combo" variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the code below would do the trick, but it doesn't:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data nicholas._21603_;&lt;/P&gt;&lt;P&gt;modify nicholas._21603_;&lt;/P&gt;&lt;P&gt;if find(Combo,"Low") then remove;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nicholas Kormanik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 10:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117096#M32273</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-02-21T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117097#M32274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code this is working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;&lt;P&gt;data new;&lt;/P&gt;&lt;P&gt;input sno combo $;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 Low_A&lt;/P&gt;&lt;P&gt;2 Low_B&lt;/P&gt;&lt;P&gt;3 High_c&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table final as select * from new except select * from new where combo like '%Low%';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;=====================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;&lt;P&gt; Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; sno&amp;nbsp;&amp;nbsp;&amp;nbsp; combo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High_c&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 10:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117097#M32274</guid>
      <dc:creator>damanaulakh88</dc:creator>
      <dc:date>2013-02-21T10:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117098#M32275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And moreover if you want to do it through dataset then below is the code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;data final;&lt;/P&gt;&lt;P&gt;set new;&lt;/P&gt;&lt;P&gt;if index(COMBO,'Low') &amp;gt;0 then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Daman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 10:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117098#M32275</guid>
      <dc:creator>damanaulakh88</dc:creator>
      <dc:date>2013-02-21T10:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117099#M32276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY statement whould not replace your data that if you supply the same named in your Data or MODIFY Statement and i think REMOVE statement affects the observation to be written to data set though you use the same name in DATA or MODIFY statement...So it must be work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is some access prohibition for your dataset(read-only) or library(read-only)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modify test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if find(sex,"M") then remove;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the above SAS Code and it works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Urvish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 11:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117099#M32276</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2013-02-21T11:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117100#M32277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent job, damanaulakh88.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table nicholas._21603_trimmed &lt;/P&gt;&lt;P&gt;as select * &lt;/P&gt;&lt;P&gt;from nicholas._21603_ &lt;/P&gt;&lt;P&gt;except select * from nicholas._21603_&lt;/P&gt;&lt;P&gt;where Combo like '%Low%';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow-up question...&amp;nbsp; If there is a second word I'd like to look for as well, can I &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) combine that into the present code you provided?, or &lt;/P&gt;&lt;P&gt;b) must I issue a second complete command set for each such additional word?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Also look for the word "High", and if Combo has any observations with that word, remove those observation as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please amend the above code, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 02:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117100#M32277</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-02-22T02:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117101#M32278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you go with the modified code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;create table nicholas._21603_trimmed&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;as select *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;from nicholas._21603_&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;except select * from nicholas._21603_&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where Combo like '%Low%' or combo like'%High%';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Daman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 03:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117101#M32278</guid>
      <dc:creator>damanaulakh88</dc:creator>
      <dc:date>2013-02-22T03:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117102#M32279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="replyToName" style="font-style: inherit; font-family: inherit;"&gt;damanaulakh88&lt;/SPAN&gt;, here is the log of the full code I'm now trying to use.&amp;nbsp; Unfortunately I am getting some errors.&amp;nbsp; Wonder if you can spot what might be wrong?&amp;nbsp; Using SAS 9.2, by the way.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table nicholas._Combined_trimmed&lt;/P&gt;&lt;P&gt;as select *&lt;/P&gt;&lt;P&gt;from nicholas._Combined_&lt;/P&gt;&lt;P&gt;except select * from nicholas._Combined_&lt;/P&gt;&lt;P&gt;where Combo like "%xxxxxxx%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro XXXXXXX not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%23601%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%23602%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%23603%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%23604%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%23605%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%23606%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%AvgPrc21%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro AVGPRC21 not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%AvgVol21%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro AVGVOL21 not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%Close%"&lt;/P&gt;&lt;P&gt;ERROR: Macro keyword CLOSE is not yet implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%DayofWeek%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro DAYOFWEEK not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%High%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro HIGH not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%Low%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro LOW not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%Open%"&lt;/P&gt;&lt;P&gt;ERROR: Macro keyword OPEN is not yet implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%PxV21%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro PXV21 not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like "%Volume%"&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro VOLUME not resolved.&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;NOTE: Table NICHOLAS._COMBINED_TRIMMED created, with 6112701 rows and 15 columns.&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2:54.05&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 45.08 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 07:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117102#M32279</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-02-22T07:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117103#M32280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run it with Single Quotes , it will work then:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:-&lt;/P&gt;&lt;P&gt;=====================&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;or Combo like '%23601%' - CORRECT&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;or Combo like&lt;/SPAN&gt; "%23601%"- WRONG&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;=====================&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;/Daman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 08:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117103#M32280</guid>
      <dc:creator>damanaulakh88</dc:creator>
      <dc:date>2013-02-22T08:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117104#M32281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="replyToName" style="font-style: inherit; font-family: inherit;"&gt;damanaulakh88&lt;/SPAN&gt;, the second way you provided to do what was requested worked flawlessly.&amp;nbsp; Thank you so very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data nicholas._combined_trimmed ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;set nicholas._combined_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"23601"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"23602"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"23603"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"23604"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"23605"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"23606"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"AvgPrc21" ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"AvgVol21" ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"Close"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"DayofWeek") &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"High"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"Low"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"Open"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"PxV21"&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;if index(combo,"Volume"&amp;nbsp;&amp;nbsp; ) &amp;gt;0 then delete;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 08:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117104#M32281</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-02-22T08:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification on deleting observations from dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117105#M32282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Completely correct.&amp;nbsp; Both approaches worked perfectly.&amp;nbsp; The one marked correct was the faster of the two, considerably faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,damanaulakh88!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table nicholas._Combined_trimmed&lt;/P&gt;&lt;P&gt;as select *&lt;/P&gt;&lt;P&gt;from nicholas._Combined_&lt;/P&gt;&lt;P&gt;except select * from nicholas._Combined_&lt;/P&gt;&lt;P&gt;where Combo like '%xxxxxxx%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%23601%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%23602%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%23603%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%23604%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%23605%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%23606%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%AvgPrc21%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%AvgVol21%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%Close%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%DayofWeek%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%High%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%Low%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%Open%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%PxV21%'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; or Combo like '%Volume%'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 09:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Clarification-on-deleting-observations-from-dataset/m-p/117105#M32282</guid>
      <dc:creator>NKormanik</dc:creator>
      <dc:date>2013-02-22T09:23:00Z</dc:date>
    </item>
  </channel>
</rss>

