<?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: Removing the first observation of duplicates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504064#M134839</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I believe you need to sort by at least one additional variable as else if the source data comes in a different order you can easily end-up picking the records with the missings - which I believe is not what the OP wants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Oct 2018 00:28:10 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2018-10-14T00:28:10Z</dc:date>
    <item>
      <title>Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503882#M134745</link>
      <description>&lt;P&gt;Hi SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dataset contains duplicate observations and the second observation of the duplicate contains information I need for some variables.&lt;/P&gt;&lt;P&gt;I have sorted the data by 2 variables: record_id and event_name, and by using proc sort with nodupkey SAS deletes the second observation of the duplicate.&lt;/P&gt;&lt;P&gt;Is there a way for me to keep the second observation and delete the first of the duplicates?&lt;/P&gt;&lt;P&gt;Thank you in advance for any advice!!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 19:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503882#M134745</guid>
      <dc:creator>michan22</dc:creator>
      <dc:date>2018-10-12T19:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503883#M134746</link>
      <description>&lt;P&gt;Can you post input and required output samples plz&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 19:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503883#M134746</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-12T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503887#M134748</link>
      <description>&lt;P&gt;Currently my dataset has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;record_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;event_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; instrument&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vital&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;performance&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;symptoms&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...........&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; consult&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 months&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;follow up&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 months&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;follow up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 months&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;follow up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;follow up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;80&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are about 5000 observations in my dataset and a lot of record has duplicates like record 1, and I would like to keep the second observation of the duplicate as it has data values in variables I am interested.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Oct 2018 19:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503887#M134748</guid>
      <dc:creator>michan22</dc:creator>
      <dc:date>2018-10-12T19:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503888#M134749</link>
      <description>&lt;P&gt;assuming you want to keep the second of each by group i.e record_id&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
do _n_=1 by 1 until(last.record_id);
set have;
by record_id;
if _n_=2 then output;
end;
run;
/*or/And what if you had just one record_idin some cases*/
data want;
do _n_=1 by 1 until(last.record_id);
set have;
by record_id;
if first.record_id and last.record_id then output;
else if _n_=2 then output;
end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Oct 2018 20:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503888#M134749</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-10-12T20:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503982#M134798</link>
      <description>&lt;P&gt;BY processing can be put to profit here&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
by record_id event_name;

/* To keep only the last record */
if last.event_name;

/* OR */
/* To remove only the first record when there are many */
*if not first.event_name or last.event_name;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Oct 2018 04:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/503982#M134798</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-10-13T04:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504058#M134834</link>
      <description>&lt;P&gt;Apologies but I should have specified that I would like to keep the second record of the 3 month in my example. So each line would be a different event_name.&lt;/P&gt;&lt;P&gt;I would like to have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;record_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;event_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; instrument&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vital&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;performance&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;symptoms&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...........&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; consult&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 months&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;follow up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 months&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;follow up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;follow up&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;80&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Oct 2018 23:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504058#M134834</guid>
      <dc:creator>michan22</dc:creator>
      <dc:date>2018-10-13T23:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504059#M134835</link>
      <description>&lt;P&gt;That's what my code does:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input record_id event_name :&amp;amp;$12. instrument :&amp;amp;$12. vital performance symptoms;
datalines;
1                    .                      consult                  1  . .                     
1                    3 months               follow up    . . . 
1                    3 months               follow up            1                 80                             1
1                    6 months               follow up            1 . .                                                  
1                    1 year                 follow up            1                  80                            0
;

proc sort data=have; by record_id event_name; run;

data want;
set have;
by record_id event_name;

/* To keep only the last record */
if last.event_name;

/* OR */
/* To remove only the first record when there are many */
*if not first.event_name or last.event_name;

run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;           record_     event_
    Obs       id        name      instrument    vital    performance    symptoms

     1        1                   consult         1            .            .
     2        1       1 year      follow up       1           80            0
     3        1       3 months    follow up       1           80            1
     4        1       6 months    follow up       1            .            .
&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Oct 2018 23:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504059#M134835</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-10-13T23:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504061#M134836</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135827"&gt;@michan22&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;For the data you've posted the following should work (which is basically what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; already suggested).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile datalines truncover dsd dlm='|' ;
  input record_id event_name :$20. instrument vital performance symptoms;
  datalines;
1|consult|1|
1|3 months|follow up 
1|3 months|follow up|1|80|1
1|6 months|follow up|1|
1|1 year|follow up|1|80|0
;
run;

proc sort data=have out=inter;
  by record_id event_name vital performance symptoms;
run;

data want;
  set inter;
  by record_id event_name;
  if last.event_name;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Question is if the sample data you've posted is sufficiently representative for your real data. I.e. if the record you want to keep has VITAL as missing&amp;nbsp;but there is a "duplicate" with Vital populated then above code wouldn't work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you need logic which just&amp;nbsp;consolidates all non-missing data per record_id and event_name into a single record then the code logic needs also to be different.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 00:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504061#M134836</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-10-14T00:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504062#M134837</link>
      <description>&lt;P&gt;Thank you!!! It worked!&amp;nbsp;I was stuck on this for a few days and didn't want to try to delete the first duplicate manually. It's amazing how the coding is just 2 lines!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 00:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504062#M134837</guid>
      <dc:creator>michan22</dc:creator>
      <dc:date>2018-10-14T00:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504064#M134839</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I believe you need to sort by at least one additional variable as else if the source data comes in a different order you can easily end-up picking the records with the missings - which I believe is not what the OP wants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 00:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504064#M134839</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-10-14T00:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504066#M134840</link>
      <description>&lt;P&gt;I see! Thank you for the wonderful advice!! I will add an additional variable in proc sort&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 00:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504066#M134840</guid>
      <dc:creator>michan22</dc:creator>
      <dc:date>2018-10-14T00:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the first observation of duplicates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504070#M134844</link>
      <description>&lt;P&gt;I understand your point &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;, but there might not be another variable to sort by. However there should be no need for an extra sorting variable as the default sorting behavior is to keep the original ordering within by-groups (see the SORTEQUALS option.)&lt;/P&gt;</description>
      <pubDate>Sun, 14 Oct 2018 02:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-first-observation-of-duplicates/m-p/504070#M134844</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-10-14T02:48:01Z</dc:date>
    </item>
  </channel>
</rss>

