<?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: Using IF versus WHERE for conditionals in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-IF-versus-WHERE-for-conditionals/m-p/936655#M368129</link>
    <description>&lt;P&gt;Where would apply&amp;nbsp; to the values as read from data on the SET statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF any of the values of the variable are changed, such as changing a lower case 'a' to 'A' the Where would have been applied before the change. An IF statement appearing after a change to the variable would use the new value of the variable for selection.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jul 2024 19:31:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-07-22T19:31:46Z</dc:date>
    <item>
      <title>Using IF versus WHERE for conditionals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-IF-versus-WHERE-for-conditionals/m-p/936651#M368128</link>
      <description>&lt;P&gt;For the SaS Practice Exam for the&amp;nbsp; A00-231 exam, one of the questions involves only taking values of a group equal to A or B. When I use WHERE group in ('A','B');, it gives me 4897 rows. The correct answer, which uses IF group in ('A','B'), gives 4992 rows. I'm not sure why there is a discrepancy here, I figures they should do the same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 19:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-IF-versus-WHERE-for-conditionals/m-p/936651#M368128</guid>
      <dc:creator>pgonatas12</dc:creator>
      <dc:date>2024-07-22T19:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using IF versus WHERE for conditionals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-IF-versus-WHERE-for-conditionals/m-p/936655#M368129</link>
      <description>&lt;P&gt;Where would apply&amp;nbsp; to the values as read from data on the SET statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF any of the values of the variable are changed, such as changing a lower case 'a' to 'A' the Where would have been applied before the change. An IF statement appearing after a change to the variable would use the new value of the variable for selection.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 19:31:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-IF-versus-WHERE-for-conditionals/m-p/936655#M368129</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-22T19:31:46Z</dc:date>
    </item>
  </channel>
</rss>

