<?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: Using SAS to find multiples of X in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-to-find-multiples-of-X/m-p/140979#M261527</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;How about this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 999;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if mod(i,3)=0 or mod(i,5)=0 then total+i;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if i=999 then output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2014 14:59:03 GMT</pubDate>
    <dc:creator>Xianhua_zeng</dc:creator>
    <dc:date>2014-03-12T14:59:03Z</dc:date>
    <item>
      <title>Using SAS to find multiples of X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-to-find-multiples-of-X/m-p/140978#M261526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to SAS and I am practicing doing different process' using the coding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do the following, however I have hit a wall. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;EM style="color: black; font-size: 10pt;"&gt;If we list all of the natural numbers below 10 that are multiples&lt;BR /&gt;of 3 or 5, we get: 3, 5, 6 and 9. The sum of these multiples is 23.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;EM style="color: black; font-size: 10pt;"&gt;Find the sum of all the multiples of 3 or 5 below 1000.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please can anyone advise how this should be written&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-to-find-multiples-of-X/m-p/140978#M261526</guid>
      <dc:creator>JaiDorey</dc:creator>
      <dc:date>2014-03-12T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS to find multiples of X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-to-find-multiples-of-X/m-p/140979#M261527</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;How about this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=1 to 999;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if mod(i,3)=0 or mod(i,5)=0 then total+i;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if i=999 then output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2014 14:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-to-find-multiples-of-X/m-p/140979#M261527</guid>
      <dc:creator>Xianhua_zeng</dc:creator>
      <dc:date>2014-03-12T14:59:03Z</dc:date>
    </item>
  </channel>
</rss>

