<?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: WHERE clause  INCOME &amp;lt; 0 does not show rows where income is in minus in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847134#M334931</link>
    <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;This includes knowing all types, formats and other attributes of your variables.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 19:47:21 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-11-30T19:47:21Z</dc:date>
    <item>
      <title>WHERE clause  INCOME &lt; 0 does not show rows where income is in minus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847130#M334927</link>
      <description>&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;select * from mytable&lt;/P&gt;&lt;P&gt;where income &amp;lt; 0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 19:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847130#M334927</guid>
      <dc:creator>Akhila1</dc:creator>
      <dc:date>2022-11-30T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause  INCOME &lt; 0 does not show rows where income is in minus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847132#M334929</link>
      <description>&lt;P&gt;The code looks fine.&amp;nbsp; Please add some sample data to your question which shows this behavior, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mytable ;
  income = -1 ;
run ;

proc sql;
  select * from mytable
  where income &amp;lt; 0;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 19:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847132#M334929</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-11-30T19:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause  INCOME &lt; 0 does not show rows where income is in minus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847134#M334931</link>
      <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;This includes knowing all types, formats and other attributes of your variables.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 19:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847134#M334931</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-30T19:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause  INCOME &lt; 0 does not show rows where income is in minus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847144#M334938</link>
      <description>&lt;P&gt;Income &amp;lt; 0, what does that even mean? Somebody who goes to work, the company doesn't pay the worker and the worker has to pay the company money, so his income is negative? Maybe your data set doesn't have any records where Income &amp;lt; 0 because that never happens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the code you show finds zero records, then there are no incomes less than zero in your data set.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 20:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847144#M334938</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-30T20:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause  INCOME &lt; 0 does not show rows where income is in minus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847156#M334946</link>
      <description>&lt;P&gt;Show the results of Proc Contents on your data set Mytable. If you think you have negative values and none appear than one likely cause is that the variable Income is character and not numeric, second could be a custom format that displays something you think is negative but actually holds a different value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, Proc SQL ends with a Quit statement not Run. Should create output but you may still have proc sql running.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 21:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/847156#M334946</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-30T21:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE clause  INCOME &lt; 0 does not show rows where income is in minus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/854370#M337646</link>
      <description>do a proc univariate to look at your data. univariate gives you the 5 lower and upper extreme values of the variable income. if there are any negative values, they will show up. this is a good way to look at abnormalities for continuous variables</description>
      <pubDate>Wed, 18 Jan 2023 16:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WHERE-clause-INCOME-lt-0-does-not-show-rows-where-income-is-in/m-p/854370#M337646</guid>
      <dc:creator>gema</dc:creator>
      <dc:date>2023-01-18T16:30:58Z</dc:date>
    </item>
  </channel>
</rss>

