<?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 get latest customer_id in bank loans in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614247#M179497</link>
    <description>&lt;P&gt;Assuming you have a Date variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from have
having date=max(date);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The max function should give you the latest date&lt;/P&gt;
&lt;P&gt;if it is year , just take the last record of the dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 29 Dec 2019 04:54:42 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-12-29T04:54:42Z</dc:date>
    <item>
      <title>how to get latest customer_id in bank loans</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614246#M179496</link>
      <description>&lt;P&gt;Hi Good Morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have two columns&amp;nbsp; in bank loan application data&amp;nbsp;&lt;/P&gt;&lt;P&gt;in those columns&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.Customer_id&lt;/P&gt;&lt;P&gt;2.Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:-Customer_ID is not&amp;nbsp; in sequence and year is 2019 only not given mmddyyy format&amp;nbsp;&lt;/P&gt;&lt;P&gt;so how to get very latest customer id for applying for loan&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 04:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614246#M179496</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2019-12-29T04:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest customer_id in bank loans</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614247#M179497</link>
      <description>&lt;P&gt;Assuming you have a Date variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from have
having date=max(date);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The max function should give you the latest date&lt;/P&gt;
&lt;P&gt;if it is year , just take the last record of the dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 04:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614247#M179497</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-29T04:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest customer_id in bank loans</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614248#M179498</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HI Novinosrin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in that FY' column only 2019 not given date month&amp;nbsp;&lt;/P&gt;&lt;P&gt;then how we get latest&amp;nbsp; customer_id and also customer_id is not in sequence&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 05:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614248#M179498</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2019-12-29T05:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest customer_id in bank loans</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614250#M179499</link>
      <description>Hi Can you plz post a sample? of your data and expected output?</description>
      <pubDate>Sun, 29 Dec 2019 05:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614250#M179499</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-12-29T05:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest customer_id in bank loans</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614251#M179500</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt; - If all you have to work with is a customer ID and a year not a proper date with day, month and year then I'd say you can't do it.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 05:50:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614251#M179500</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-29T05:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to get latest customer_id in bank loans</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614260#M179505</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort
  data=have
  out=sorted
;
by customer_id year;
run;

data want;
set sorted;
by customer_id;
if last.customer_id;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Dec 2019 09:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-latest-customer-id-in-bank-loans/m-p/614260#M179505</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-29T09:11:45Z</dc:date>
    </item>
  </channel>
</rss>

