<?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 find rows with such conditions in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-rows-with-such-conditions/m-p/209219#M51848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you want to do is use the sum statement but your question isn't very clear.&amp;nbsp; If this doesn't give you the desired out put try attaching what it is you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards dsd;&lt;/P&gt;&lt;P&gt;input policy$ amount date;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1,50,1&lt;/P&gt;&lt;P&gt;1,20,3&lt;/P&gt;&lt;P&gt;1,30,7&lt;/P&gt;&lt;P&gt;1,60,9&lt;/P&gt;&lt;P&gt;2,120,12&lt;/P&gt;&lt;P&gt;2,80,14&lt;/P&gt;&lt;P&gt;2,100,18&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;sum_pay + amount;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 19:31:16 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-07-22T19:31:16Z</dc:date>
    <item>
      <title>how to find rows with such conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-rows-with-such-conditions/m-p/209218#M51847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, policy amount date 1 50 1 1 20 3 1 30 7 1 60 9 2 120 12 2 80 14 2 100 18 i want to find the dates on which policy are paying their premium. for ex if the premium amount for policy 1 is 80 so on 7th date his first premium is fully collected plus 20 rs extra.on 9th date his second premium is fully recieved..20 remaining and he paid 60rs..so i want only rows where he finally paid premium..like for policy 1 i want only 3rd and 4th row.i have 1 cr policies. please help on this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-rows-with-such-conditions/m-p/209218#M51847</guid>
      <dc:creator>rajan_reliance</dc:creator>
      <dc:date>2015-07-22T19:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to find rows with such conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-find-rows-with-such-conditions/m-p/209219#M51848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you want to do is use the sum statement but your question isn't very clear.&amp;nbsp; If this doesn't give you the desired out put try attaching what it is you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;infile cards dsd;&lt;/P&gt;&lt;P&gt;input policy$ amount date;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1,50,1&lt;/P&gt;&lt;P&gt;1,20,3&lt;/P&gt;&lt;P&gt;1,30,7&lt;/P&gt;&lt;P&gt;1,60,9&lt;/P&gt;&lt;P&gt;2,120,12&lt;/P&gt;&lt;P&gt;2,80,14&lt;/P&gt;&lt;P&gt;2,100,18&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;sum_pay + amount;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-find-rows-with-such-conditions/m-p/209219#M51848</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-07-22T19:31:16Z</dc:date>
    </item>
  </channel>
</rss>

