<?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: need sas code for a problem, can anybody help with right SAS logic? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127590#M260333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't see sample data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2012 13:40:25 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-09-21T13:40:25Z</dc:date>
    <item>
      <title>need sas code for a problem, can anybody help with right SAS logic?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127589#M260332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN id="yui_3_2_0_1_1348232739463202" style="color: black;"&gt;&lt;STRONG id="yui_3_2_0_1_1348232739463199"&gt;I have a sample data set to make it easy for you to look and know how the data looks like. The data has 3 fields 1.clientid 2.Date 3.Balances. The real data has information for the period July 2011-july2012, meaning Client balances data for the 13 months July 2011-july2012. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="yiv686169489MsoNormal" style="background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG style="color: black;"&gt;I want to calculate for clients who have a&lt;SPAN style="text-decoration: underline;"&gt; relationship&amp;lt;1 year&lt;/SPAN&gt; (/*so should we first take clients whose balances do not run for full 12 months or 365 days*/- comment) with the bank, &lt;BR /&gt;&lt;BR /&gt;&lt;EM style="text-decoration: underline;"&gt;Problem 1&lt;/EM&gt;:Then for the clients who have relationship&amp;lt;1year, i want to do the following calculation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal"&gt;&lt;STRONG style="; color: black; text-decoration: underline;"&gt;Step1. Take the Min balance of the entire period for each client&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal"&gt;&lt;STRONG style="; color: black; text-decoration: underline;"&gt;Step2.avg 3 month balance (over last 3 months)&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="yiv686169489MsoNormal" style="margin-bottom: 12pt; background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG style="; color: black; text-decoration: underline;"&gt;Step3..step1/step2=core &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal"&gt;&lt;STRONG&gt;&lt;EM style="; color: black; text-decoration: underline;"&gt;Problem2&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;:Then I want to calculate for clients that exhibit erratic balance-data integrity issues&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal"&gt;&lt;STRONG style="; color: black; text-decoration: underline;"&gt;step1.take the average of the prior and after values&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="yiv686169489MsoNormal" style="margin-bottom: 12pt; background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG style="; color: black; text-decoration: underline;"&gt;step2.plug the value calculated in step1 into the blank data points between 2 dates&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal" style="background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG&gt;&lt;EM style="; color: black; text-decoration: underline;"&gt;Problem3&lt;/EM&gt;&lt;SPAN style="color: black;"&gt;:Insert a column to indicate methodology as:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal" style="background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG style="color: black;"&gt;1.Normal&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal" style="background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG style="color: black;"&gt;2.Deposit holding&amp;lt;1 year&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="yiv686169489MsoNormal" style="background: none repeat scroll 0% 0% white;"&gt;&lt;STRONG style="color: black;"&gt;3.with missing data points&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="yiv686169489MsoNormal" style="background: none repeat scroll 0% 0% white;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:12:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127589#M260332</guid>
      <dc:creator>Nav_Sweeney</dc:creator>
      <dc:date>2012-09-21T13:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: need sas code for a problem, can anybody help with right SAS logic?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127590#M260333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't see sample data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127590#M260333</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-09-21T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: need sas code for a problem, can anybody help with right SAS logic?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127591#M260334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see you are a Newbee.&amp;nbsp; Suggestion:&amp;nbsp; Select a forum, appropriate for your request, before selecting "start a discussion".&amp;nbsp; That helps the responders with organization and time management.&amp;nbsp; I would think both of these would go in either of the first two forums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/need-sas-code-for-a-problem-can-anybody-help-with-right-SAS/m-p/127591#M260334</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-09-21T13:46:46Z</dc:date>
    </item>
  </channel>
</rss>

