<?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: How to delete observations outside of a specified range in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154947#M40681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion.&amp;nbsp; It didn't work for my particular purposes but I figured out something that did.&amp;nbsp; Here's the code in case anyone's interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;delete from lib.dataset&lt;/P&gt;&lt;P&gt;where varA not between 'value' and 'value' and varB eq value;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 19:15:02 GMT</pubDate>
    <dc:creator>ccox4682</dc:creator>
    <dc:date>2014-01-29T19:15:02Z</dc:date>
    <item>
      <title>How to delete observations outside of a specified range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154945#M40679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, hoping someone here can help.&amp;nbsp; I think I'm missing something deceptively simple and obvious in my if-then statement.&amp;nbsp; In short, I want to delete all observations outside of a specified range (e.g. 'value' ge 'varA' ge value;) dependent upon the conditions of another variable (varB = '2', for instance).&amp;nbsp; I think I'm close, but I've wasted two days trying to get it to work to no avail.&amp;nbsp; Can someone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 20:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154945#M40679</guid>
      <dc:creator>ccox4682</dc:creator>
      <dc:date>2014-01-28T20:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observations outside of a specified range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154946#M40680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (13 &amp;lt;= age &amp;lt;= 15) and sex='F' then delete;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 21:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154946#M40680</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2014-01-28T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete observations outside of a specified range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154947#M40681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion.&amp;nbsp; It didn't work for my particular purposes but I figured out something that did.&amp;nbsp; Here's the code in case anyone's interested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;delete from lib.dataset&lt;/P&gt;&lt;P&gt;where varA not between 'value' and 'value' and varB eq value;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 19:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-delete-observations-outside-of-a-specified-range/m-p/154947#M40681</guid>
      <dc:creator>ccox4682</dc:creator>
      <dc:date>2014-01-29T19:15:02Z</dc:date>
    </item>
  </channel>
</rss>

