<?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: To select a few conditions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474531#M121944</link>
    <description>&lt;P&gt;Either of these changes should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a1.prediss1;
set a1.prediss;
where Error=0 And (Phoneme_stress in (0, 1));
run;


data a1.Prediss1;
set a1.Prediss;
if Phonem_stress in (2, 3, 4, 5)&amp;nbsp; and error ne 0 then delete;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 17:57:49 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-06-29T17:57:49Z</dc:date>
    <item>
      <title>To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474529#M121943</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder how I can choose Phoneme_stress condition of 0 and 1 and drop 2, 3, 4, and 5.&lt;/P&gt;&lt;P&gt;Neither of below codes worked.&lt;/P&gt;&lt;P&gt;Could you please help me following codes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a1.prediss1;&lt;BR /&gt;set a1.prediss;&lt;BR /&gt;where Error=0 And [Phoneme_stress=0 or Phonem_stress=1];&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data a1.Prediss1;&lt;BR /&gt;set a1.Prediss;&lt;BR /&gt;if Phonem_stress in (2, 3, 4, 5) then delete;&lt;BR /&gt;where error=0;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 17:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474529#M121943</guid>
      <dc:creator>nlpurumi</dc:creator>
      <dc:date>2018-06-29T17:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474531#M121944</link>
      <description>&lt;P&gt;Either of these changes should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a1.prediss1;
set a1.prediss;
where Error=0 And (Phoneme_stress in (0, 1));
run;


data a1.Prediss1;
set a1.Prediss;
if Phonem_stress in (2, 3, 4, 5)&amp;nbsp; and error ne 0 then delete;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 17:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474531#M121944</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-29T17:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474533#M121945</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 17:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474533#M121945</guid>
      <dc:creator>nlpurumi</dc:creator>
      <dc:date>2018-06-29T17:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474534#M121946</link>
      <description>&lt;P&gt;Your second program might be fine as is ... as long as you are spelling the variable name correctly.&amp;nbsp; Is it Phonem&lt;FONT color="#FF0000"&gt;e&lt;/FONT&gt;_stress, or is it Phonem_stress?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you never explained ERROR and what that is about.&amp;nbsp; So all we can do is assume you have used it correctly.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474534#M121946</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-06-29T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474536#M121947</link>
      <description>&lt;P&gt;I wanted to included only error=0 values in all those conditions I wanted to include (phoneme_stress=0 or 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it change any of the codes I created or received from Reeza?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474536#M121947</guid>
      <dc:creator>nlpurumi</dc:creator>
      <dc:date>2018-06-29T18:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474539#M121948</link>
      <description>&lt;P&gt;It doesn't change either of&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s programs.&amp;nbsp; You might want to select one or the&amp;nbsp; other, based on how you want bad data to be handled.&amp;nbsp; What should happen of Phoneme_stress is missing, or 8, for example?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474539#M121948</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-06-29T18:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: To select a few conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474541#M121949</link>
      <description>&lt;P&gt;After exploring a little bit, I found following two codes worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data a1.prediss1;&lt;BR /&gt;set a1.prediss;&lt;BR /&gt;where Error=0 And (Phoneme_stress in (0, 1));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data a1.Prediss1;&lt;BR /&gt;set a1.Prediss;&lt;BR /&gt;where error=0;&lt;BR /&gt;if Phoneme_stress in (2, 3, 4, 5) then delete;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to include only Error=0. Error is a dichotomous variable.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/To-select-a-few-conditions/m-p/474541#M121949</guid>
      <dc:creator>nlpurumi</dc:creator>
      <dc:date>2018-06-29T18:14:12Z</dc:date>
    </item>
  </channel>
</rss>

