<?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 SELECT  numbers dividable by 1000 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912816#M359798</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to select all numbers from have data set that meet following condition:&lt;/P&gt;
&lt;P&gt;If number is lower than 10000 and dividable by 1000 then Ind=1&lt;/P&gt;
&lt;P&gt;IF number higher than 10000 and dividable by 5000 then Ind=1&lt;/P&gt;
&lt;P&gt;else Ind=0&lt;/P&gt;
&lt;P&gt;At the end need to select only rows with Ind=1&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
input X;
cards;
750
800
900
1000
1800
3000
2900
8000
8200
8500
43000
50000
90001
90000
95000
96000
;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 12:44:23 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2024-01-24T12:44:23Z</dc:date>
    <item>
      <title>SELECT  numbers dividable by 1000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912816#M359798</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to select all numbers from have data set that meet following condition:&lt;/P&gt;
&lt;P&gt;If number is lower than 10000 and dividable by 1000 then Ind=1&lt;/P&gt;
&lt;P&gt;IF number higher than 10000 and dividable by 5000 then Ind=1&lt;/P&gt;
&lt;P&gt;else Ind=0&lt;/P&gt;
&lt;P&gt;At the end need to select only rows with Ind=1&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
input X;
cards;
750
800
900
1000
1800
3000
2900
8000
8200
8500
43000
50000
90001
90000
95000
96000
;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 12:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912816#M359798</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-24T12:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT  numbers dividable by 1000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912819#M359801</link>
      <description>&lt;P&gt;Use the MOD function, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if mod(x,1000) = 0&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I leave the rest of the condition to you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 12:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912819#M359801</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-01-24T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT  numbers dividable by 1000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912821#M359802</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;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'd really love sometimes to have more options than only a Thumbs Up Like as comment.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 13:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912821#M359802</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-01-24T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT  numbers dividable by 1000</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912832#M359807</link>
      <description>if x&amp;lt;=10000 and mod(x,1000) = 0 then ind=1:&lt;BR /&gt;Else if x&amp;gt;10000 and mod(x,5000)=0 then ind=1:&lt;BR /&gt;Else ind=0;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2024 14:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SELECT-numbers-dividable-by-1000/m-p/912832#M359807</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-01-24T14:25:33Z</dc:date>
    </item>
  </channel>
</rss>

