<?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 Mathematical Comparison Operators in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740317#M231237</link>
    <description>&lt;P&gt;Hi....I am trying to delete records when the Withdrawn Date is "less then" the Term Start Date. The code below gives me the right output. Can anyone explain to me why the "&amp;gt;" in this context is referring to "less than". Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data Want;
	set Have;
		if 'Withdrawn Date'n &amp;gt; 'Term Start Date'n then delete;
run;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 May 2021 22:30:05 GMT</pubDate>
    <dc:creator>twildone</dc:creator>
    <dc:date>2021-05-10T22:30:05Z</dc:date>
    <item>
      <title>Mathematical Comparison Operators</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740317#M231237</link>
      <description>&lt;P&gt;Hi....I am trying to delete records when the Withdrawn Date is "less then" the Term Start Date. The code below gives me the right output. Can anyone explain to me why the "&amp;gt;" in this context is referring to "less than". Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data Want;
	set Have;
		if 'Withdrawn Date'n &amp;gt; 'Term Start Date'n then delete;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 May 2021 22:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740317#M231237</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2021-05-10T22:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740318#M231238</link>
      <description>&lt;P&gt;Because &amp;gt; is read "greater than" from left to right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Less than" would look like&lt;/P&gt;
&lt;PRE&gt;if 'Term Start Date'n &amp;lt; 'Withdrawn Date'n  then delete;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A way to remember the "wide" end of the &amp;gt; or the &amp;lt; is the "Larger" value when true. &lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 22:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740318#M231238</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-10T22:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740319#M231239</link>
      <description>Maybe your logic is backwards. Your code is deleting records where the withdrawn date is after the term start date. It may only work by accident....so I'd be double checking things.</description>
      <pubDate>Mon, 10 May 2021 22:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740319#M231239</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-10T22:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mathematical Comparison Operators</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740320#M231240</link>
      <description>FYI - I changed the subject line of your question, as you're really asking about mathematical comparison operators. &lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/lrcon/9.4/p00iah2thp63bmn1lt20esag14lh.htm#n10lfrm906gpv7n1t7fue0g1ayqz" target="_blank"&gt;https://documentation.sas.com/doc/en/lrcon/9.4/p00iah2thp63bmn1lt20esag14lh.htm#n10lfrm906gpv7n1t7fue0g1ayqz&lt;/A&gt;</description>
      <pubDate>Mon, 10 May 2021 22:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740320#M231240</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-10T22:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740324#M231244</link>
      <description>&lt;P&gt;Hi....when I run the code below, I am getting all the records where the Withdrawn Date is LESS than the Term Start Date. But am I correct that the if statement is processed from left to right?&lt;/P&gt;
&lt;PRE&gt;data Want;
	set Have;
		if 'Withdrawn Date'n &amp;lt; 'Term Start Date'n then delete;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 May 2021 22:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740324#M231244</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2021-05-10T22:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740325#M231245</link>
      <description>Remember you're deleting records that MATCH your condition. &lt;BR /&gt;So anything left in the data set is the OPPOSITE of the comparison.</description>
      <pubDate>Mon, 10 May 2021 23:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740325#M231245</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-10T23:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740326#M231246</link>
      <description>&lt;P&gt;In your case it doesn't matter which direction you read your IF statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Withdrawn Date &amp;lt; Term Start Date then delete" is equivalent to&amp;nbsp;"Term Start Date&amp;nbsp;&amp;gt; Withdrawn Date then delete"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result set will be the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 23:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740326#M231246</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-10T23:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740549#M231353</link>
      <description>&lt;P&gt;Hi...I was able to track down where the problem is. The missing entries in the Withdrawn Date variable has decimal rather than&amp;nbsp; blank space. I will double check where it has changed to decimal from a blank space. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740549#M231353</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2021-05-11T16:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: re: Mathematical Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740552#M231356</link>
      <description>SAS shows numeric missing as a period, not as a blank space. &lt;BR /&gt;</description>
      <pubDate>Tue, 11 May 2021 16:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mathematical-Comparison-Operators/m-p/740552#M231356</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-11T16:57:23Z</dc:date>
    </item>
  </channel>
</rss>

