<?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: Why does SAS change the where-clause conjugates? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281183#M56965</link>
    <description>&lt;P&gt;That's what I posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first piece of code is from the submitted SAS code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second piece of code was lifted from the SAS log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if that wasn't clear.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2016 17:56:04 GMT</pubDate>
    <dc:creator>sh0e</dc:creator>
    <dc:date>2016-06-29T17:56:04Z</dc:date>
    <item>
      <title>Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281164#M56958</link>
      <description>&lt;P&gt;I have noticed that if my where clause looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#000080"&gt;not( missing( ben_per_start_date ) | missing( ben_per_end_date ) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS turns it into this logical equivalence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#000080"&gt;(not MISSING(ben_per_start_date)) and (not MISSING(ben_per_end_date)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#000080"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;Does this mean that I am coding my original incorrectly or inefficiently?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;SPAN&gt;- Jack&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281164#M56958</guid>
      <dc:creator>sh0e</dc:creator>
      <dc:date>2016-06-29T16:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281181#M56964</link>
      <description>&lt;P&gt;What evidence do you have that it is doing that?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 17:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281181#M56964</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-29T17:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281183#M56965</link>
      <description>&lt;P&gt;That's what I posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first piece of code is from the submitted SAS code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second piece of code was lifted from the SAS log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if that wasn't clear.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 17:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281183#M56965</guid>
      <dc:creator>sh0e</dc:creator>
      <dc:date>2016-06-29T17:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281197#M56972</link>
      <description>&lt;P&gt;For some obscure reason, SAS/SQL is very poor at handling OR operations. So, I guess it prefers the logical AND equivalent. Since both are logically equivalent, you should use the version that's clearer to you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 18:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281197#M56972</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-29T18:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281241#M56988</link>
      <description>&lt;P&gt;When you have an and instead of an or, you can shortcut the condition when the first part is false. This reduces the overall amount of comparisons that must be made.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 19:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281241#M56988</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-29T19:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281243#M56990</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;&amp;nbsp;Are you writing that there are fewer comparisons using the AND operator because in the first expression is false, the second is not evaluated?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 19:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281243#M56990</guid>
      <dc:creator>sh0e</dc:creator>
      <dc:date>2016-06-29T19:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why does SAS change the where-clause conjugates?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281244#M56991</link>
      <description>&lt;P&gt;You could say the same thing of an OR operation. If the first operand is true, the second one doesn't need to be evaluated.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 19:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-SAS-change-the-where-clause-conjugates/m-p/281244#M56991</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-29T19:36:13Z</dc:date>
    </item>
  </channel>
</rss>

