<?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: Keep Observations with either criteria in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79384#M22863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF R_RET=0 or 9;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9 is always true in SAS(actually any number except zero or missing value is true ), therefore your condition will always be true ,which means you will copy a dataset from another dataset.&lt;/P&gt;&lt;P&gt;Make condition be yourself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R_RET=0 or R_RET=9;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R_RET in (0 9);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 05:34:36 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-11-26T05:34:36Z</dc:date>
    <item>
      <title>Keep Observations with either criteria</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79382#M22861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to keep certain observations that satisfy either one of the criteria : Belonging to Group 0 or Belonging to Group 9. However my code does not seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BW_RAW_RET_LONG_SHORT;&lt;/P&gt;&lt;P&gt;SET BW_RAW_RET;&lt;/P&gt;&lt;P&gt;IF R_RET=0 or 9;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2012 06:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79382#M22861</guid>
      <dc:creator>Benn</dc:creator>
      <dc:date>2012-11-25T06:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Observations with either criteria</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79383#M22862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changing &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;IF R_RET=0 or 9;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px; background-color: #ffffff;"&gt;to&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.800000190734863px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;IF R_RET in (0 ,9);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2012 13:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79383#M22862</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-11-25T13:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Keep Observations with either criteria</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79384#M22863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF R_RET=0 or 9;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9 is always true in SAS(actually any number except zero or missing value is true ), therefore your condition will always be true ,which means you will copy a dataset from another dataset.&lt;/P&gt;&lt;P&gt;Make condition be yourself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R_RET=0 or R_RET=9;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R_RET in (0 9);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 05:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-Observations-with-either-criteria/m-p/79384#M22863</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-11-26T05:34:36Z</dc:date>
    </item>
  </channel>
</rss>

