<?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: How to required output (multiple of 500)? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108668#M258715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DATA TAXSAVERS;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUT AMOUNT LOAD;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nett = sum(amount, -load) ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taxsaver = round(nett - 250, 500) ;&lt;BR /&gt;DATALINES;&lt;BR /&gt;2779 50&lt;BR /&gt;16050 50&lt;BR /&gt;18000 45&lt;BR /&gt;17000 65&lt;BR /&gt;2566&amp;nbsp; 20&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The sum function will calculate the nett amount and return only the original amount if you have null (missing) values for load.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The round function will calculate to the nearest multiple of, in this case, 500; to get the highest value less than or equal to the given amount take 250 off first.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 05:22:29 GMT</pubDate>
    <dc:creator>RichardinOz</dc:creator>
    <dc:date>2012-12-27T05:22:29Z</dc:date>
    <item>
      <title>How to required output (multiple of 500)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108667#M258714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working with large data base , but i am providing the sample one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TAXSAVERS;&lt;BR /&gt;INPUT AMOUNT LOAD;&lt;BR /&gt;DATALINES;&lt;BR /&gt;2779 50&lt;BR /&gt;16050 50&lt;BR /&gt;18000 45&lt;BR /&gt;17000 65&lt;BR /&gt;2566&amp;nbsp; 20&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the&amp;nbsp; REQUITED DATABASE as follows&lt;/P&gt;&lt;P&gt;1) The first step is "load should be deducted " i.e 2779-50=2729&lt;/P&gt;&lt;P&gt;2) The gross or final TAXSAVER amount should be multiple of &lt;EM&gt;&lt;STRONG&gt;500...i.e 2729 ...would be 2500.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shall i&amp;nbsp; use the MOD function for the second step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; please help ....is there any PROC in SAS ...if not go ahead with PROC SQL...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 04:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108667#M258714</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2012-12-27T04:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to required output (multiple of 500)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108668#M258715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DATA TAXSAVERS;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUT AMOUNT LOAD;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nett = sum(amount, -load) ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; taxsaver = round(nett - 250, 500) ;&lt;BR /&gt;DATALINES;&lt;BR /&gt;2779 50&lt;BR /&gt;16050 50&lt;BR /&gt;18000 45&lt;BR /&gt;17000 65&lt;BR /&gt;2566&amp;nbsp; 20&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The sum function will calculate the nett amount and return only the original amount if you have null (missing) values for load.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The round function will calculate to the nearest multiple of, in this case, 500; to get the highest value less than or equal to the given amount take 250 off first.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 05:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108668#M258715</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2012-12-27T05:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to required output (multiple of 500)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108669#M258716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks richard good work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to do in PROC SQL...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 06:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108669#M258716</guid>
      <dc:creator>allurai0412</dc:creator>
      <dc:date>2012-12-27T06:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to required output (multiple of 500)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108670#M258717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TAXSAVERS;&lt;BR /&gt;INPUT AMOUNT LOAD;&lt;BR /&gt;DATALINES;&lt;BR /&gt;2779 50&lt;BR /&gt;16050 50&lt;BR /&gt;18000 45&lt;BR /&gt;17000 65&lt;BR /&gt;2566&amp;nbsp; 20&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table want as&lt;BR /&gt;&amp;nbsp; select round(amount-load,500) as taxsaver&lt;BR /&gt;&amp;nbsp; from taxsavers &lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt;quit;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 10:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-required-output-multiple-of-500/m-p/108670#M258717</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-12-27T10:58:41Z</dc:date>
    </item>
  </channel>
</rss>

