<?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: code problems in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161825#M42072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This means less than, i.e. if (first.id and last.id) is less than 1.&lt;/P&gt;&lt;P&gt;Sybols are:&lt;/P&gt;&lt;P&gt;&amp;lt; less than&lt;/P&gt;&lt;P&gt;&amp;gt; greater than&lt;/P&gt;&lt;P&gt;&amp;lt;= less than or equal to&lt;/P&gt;&lt;P&gt;&amp;gt;= greater than or equal to&lt;/P&gt;&lt;P&gt;There are several others in the SAS help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 08:16:06 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-07-01T08:16:06Z</dc:date>
    <item>
      <title>code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161824#M42071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does this code means?&lt;/P&gt;&lt;P&gt;(first.id and last.id)&amp;lt;1 and (first.id and last.id)&amp;lt;1"&lt;/P&gt;&lt;P&gt;&amp;lt;1 for what meanings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;part of the dataset:&lt;/P&gt;&lt;P&gt;id&amp;nbsp;&amp;nbsp; day1&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 2000/01/01&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 2000/01/01&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 2001/12/15&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 2001/12/31&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 2005/03/04&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 2005/03/04&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 2005/05/06&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 2006/07/09&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 2006/08/09&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; 2008/01/15&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; 2009/05/25&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; 2009/07/15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161824#M42071</guid>
      <dc:creator>tz0715</dc:creator>
      <dc:date>2014-07-01T08:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161825#M42072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This means less than, i.e. if (first.id and last.id) is less than 1.&lt;/P&gt;&lt;P&gt;Sybols are:&lt;/P&gt;&lt;P&gt;&amp;lt; less than&lt;/P&gt;&lt;P&gt;&amp;gt; greater than&lt;/P&gt;&lt;P&gt;&amp;lt;= less than or equal to&lt;/P&gt;&lt;P&gt;&amp;gt;= greater than or equal to&lt;/P&gt;&lt;P&gt;There are several others in the SAS help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 08:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161825#M42072</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-07-01T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161826#M42073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;(first.id and last.id) only has two value either&amp;nbsp; 0&amp;nbsp; or 1 . Therefore,&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;(first.id and last.id)&lt;/SPAN&gt;&amp;lt;1 is the same with &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;(first.id and last.id)&lt;/SPAN&gt;=0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 12:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161826#M42073</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-01T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161827#M42074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solved my earlier riddle, so here's a new one related to this question.&amp;nbsp; What does this statement do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if a=1 or 2 then b=3 and c=4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it will run without error.&amp;nbsp; But what does it do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 13:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161827#M42074</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-07-01T13:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161828#M42075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Astounding&lt;/P&gt;&lt;P&gt;That is an old scam . 2 is always be true , therefore &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;a=1 or 2&lt;/SPAN&gt; is always be true too , you are going to execute the following statement always .Am I right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 13:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161828#M42075</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-01T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161829#M42076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right about the IF condition.&amp;nbsp; What about the THEN result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 13:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161829#M42076</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-07-01T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161830#M42077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is strange code , Can you explain it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh , I understood .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then b=(2 and c=2) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161830#M42077</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-01T14:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161831#M42078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;B is set to 0 (false) and if C doesn't exist you get a missing value for an uninitialized variable.&lt;/P&gt;&lt;P&gt;3 and c evaluates to false unless c = 4 then you get 3 and true (c=4) so true and true = true for B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161831#M42078</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-01T14:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: code problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161832#M42079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B will be 0 or 1, depending on the value of C.&amp;nbsp; "3" is always true.&amp;nbsp; So when C=4, B is set to 1.&amp;nbsp; For any other value of C (including missing), B is set to 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/code-problems/m-p/161832#M42079</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-07-01T14:29:00Z</dc:date>
    </item>
  </channel>
</rss>

