<?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: Data mining in sequence in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907443#M44053</link>
    <description>&lt;P&gt;Oeps &lt;span class="lia-unicode-emoji" title=":slightly_frowning_face:"&gt;🙁&lt;/span&gt;.&lt;BR /&gt;A bit more straightforward than my code (and less lengthy = more concise).&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 22:58:22 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-12-11T22:58:22Z</dc:date>
    <item>
      <title>Data mining in sequence</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907324#M44050</link>
      <description>Hi All,&lt;BR /&gt;Need your expertise to solve below data.&lt;BR /&gt;Apps Code Date&lt;BR /&gt;590345 R33 31-Oct-23&lt;BR /&gt;590345 R34 31-Oct-23&lt;BR /&gt;590345 R33 30-Oct-23&lt;BR /&gt;590346 R21 28-Oct-23&lt;BR /&gt;590346 R19 20-Oct-23&lt;BR /&gt;&lt;BR /&gt;And my expected result will be&lt;BR /&gt;Apps Code Date&lt;BR /&gt;590345 R33 31-Oct-23&lt;BR /&gt;590345 R34 31-Oct-23&lt;BR /&gt;590346 R21 28-Oct-23&lt;BR /&gt;&lt;BR /&gt;So as you can see I'm only want data with maximum date on each Apps variable.&lt;BR /&gt;Appreciate if you can help me to solve this&lt;BR /&gt;&lt;BR /&gt;Thank you folks!&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Dec 2023 13:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907324#M44050</guid>
      <dc:creator>Ata62439</dc:creator>
      <dc:date>2023-12-11T13:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data mining in sequence</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907435#M44051</link>
      <description>&lt;P&gt;Not sure what it has to do with data mining, but here you go:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
format Date date9.;
input Apps Code $ Date : date9.;
datalines;
590345 R33 31-Oct-23
590345 R34 31-Oct-23
590345 R33 30-Oct-23
590346 R21 28-Oct-23
590346 R19 20-Oct-23
;
run;

PROC MEANS data=have MAX noprint;
 CLASS Apps Code;
 var Date;
 types Apps;
 output out=statmax max= / autoname;
run;

PROC SQL noprint;
 create table want as 
 select *
 from have
 where strip(put(Apps,6.))!!strip(put(Date,date9.)) 
       IN (select strip(put(Apps,6.))!!strip(put(Date_Max,date9.))
	       from statmax);
QUIT;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 22:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907435#M44051</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-11T22:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data mining in sequence</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907439#M44052</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select * 
from have
group by apps
having date=max(date);
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will work in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/460438"&gt;@Ata62439&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi All,&lt;BR /&gt;Need your expertise to solve below data.&lt;BR /&gt;Apps Code Date&lt;BR /&gt;590345 R33 31-Oct-23&lt;BR /&gt;590345 R34 31-Oct-23&lt;BR /&gt;590345 R33 30-Oct-23&lt;BR /&gt;590346 R21 28-Oct-23&lt;BR /&gt;590346 R19 20-Oct-23&lt;BR /&gt;&lt;BR /&gt;And my expected result will be&lt;BR /&gt;Apps Code Date&lt;BR /&gt;590345 R33 31-Oct-23&lt;BR /&gt;590345 R34 31-Oct-23&lt;BR /&gt;590346 R21 28-Oct-23&lt;BR /&gt;&lt;BR /&gt;So as you can see I'm only want data with maximum date on each Apps variable.&lt;BR /&gt;Appreciate if you can help me to solve this&lt;BR /&gt;&lt;BR /&gt;Thank you folks!&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 22:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907439#M44052</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-12-11T22:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data mining in sequence</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907443#M44053</link>
      <description>&lt;P&gt;Oeps &lt;span class="lia-unicode-emoji" title=":slightly_frowning_face:"&gt;🙁&lt;/span&gt;.&lt;BR /&gt;A bit more straightforward than my code (and less lengthy = more concise).&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 22:58:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Data-mining-in-sequence/m-p/907443#M44053</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-11T22:58:22Z</dc:date>
    </item>
  </channel>
</rss>

