<?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 where condition with negative number does not work? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758633#M239577</link>
    <description>&lt;P&gt;Always (as in&lt;/P&gt;
&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;) show us the code you used, and the complete log from it, when it "does not work".&lt;/P&gt;</description>
    <pubDate>Sun, 01 Aug 2021 06:20:43 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-08-01T06:20:43Z</dc:date>
    <item>
      <title>Why where condition with negative number does not work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758616#M239563</link>
      <description>&lt;P&gt;i have a table with negative percent&lt;/P&gt;&lt;P&gt;format of the variable: percentn10.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sk1_SAS_0-1627766054931.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62171iAB01E8ED7D741604/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sk1_SAS_0-1627766054931.png" alt="Sk1_SAS_0-1627766054931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried: where variable &amp;lt; 0, but does not work, do you know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 21:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758616#M239563</guid>
      <dc:creator>Sk1_SAS</dc:creator>
      <dc:date>2021-07-31T21:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why where condition with negative number does not work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758617#M239564</link>
      <description>&lt;P&gt;What do you mean by "does not work"? Please state what happens, in enough details so I can understand what you are seeing, or show us the incorrect results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us the full LOG of the code you are running, so we can see the code as it is displayed in the log, plus any ERRORs, WARNINGs and NOTEs. Do not chop out parts of the log. Do not pick and choose parts of the log to show us, and then not show us other parts.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 21:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758617#M239564</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-31T21:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why where condition with negative number does not work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758625#M239571</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251275"&gt;@Sk1_SAS&lt;/a&gt;&amp;nbsp;WHAT is not working. Please also provide sample data in the form of a data step as done below and not as a screenshot.&lt;/P&gt;
&lt;P&gt;Just wildly guessing: I could imagine that you could get an unexpected result if you condition was variable &amp;lt;= 0&amp;nbsp; Not sure about variable &amp;lt;0&lt;/P&gt;
&lt;P&gt;Best provide sample data and your selection and tell us where your condition doesn't work as you'd expect.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input variable;
  format variable percentn10.2;
  datalines;
-0.0016
-0.0166
0
0.000001
-0.000001
;

proc print data=have;
  where variable&amp;lt;0;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1627777741454.png" style="width: 160px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62172i2587A1310EE85236/image-dimensions/160x150?v=v2" width="160" height="150" role="button" title="Patrick_0-1627777741454.png" alt="Patrick_0-1627777741454.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 00:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758625#M239571</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-08-01T00:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why where condition with negative number does not work?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758633#M239577</link>
      <description>&lt;P&gt;Always (as in&lt;/P&gt;
&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;) show us the code you used, and the complete log from it, when it "does not work".&lt;/P&gt;</description>
      <pubDate>Sun, 01 Aug 2021 06:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-where-condition-with-negative-number-does-not-work/m-p/758633#M239577</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-08-01T06:20:43Z</dc:date>
    </item>
  </channel>
</rss>

