<?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 delete row if it's identical to previous one ( if the current row is the same as previous) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/delete-row-if-it-s-identical-to-previous-one-if-the-current-row/m-p/577648#M13257</link>
    <description>&lt;P&gt;I would like to ask you how to delete a row if the values of the prvious row are the same (only if all variables are the same)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response.&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 09:43:53 GMT</pubDate>
    <dc:creator>SIgnificatif</dc:creator>
    <dc:date>2019-07-30T09:43:53Z</dc:date>
    <item>
      <title>delete row if it's identical to previous one ( if the current row is the same as previous)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/delete-row-if-it-s-identical-to-previous-one-if-the-current-row/m-p/577648#M13257</link>
      <description>&lt;P&gt;I would like to ask you how to delete a row if the values of the prvious row are the same (only if all variables are the same)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response.&lt;/P&gt;&lt;P&gt;Sincerely.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 09:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/delete-row-if-it-s-identical-to-previous-one-if-the-current-row/m-p/577648#M13257</guid>
      <dc:creator>SIgnificatif</dc:creator>
      <dc:date>2019-07-30T09:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: delete row if it's identical to previous one ( if the current row is the same as previous)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/delete-row-if-it-s-identical-to-previous-one-if-the-current-row/m-p/577661#M13258</link>
      <description>&lt;P&gt;Two ways:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have out=want nodupkey;
by _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as select distinct * from have;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have to keep the original order (and the duplicates always appear in direct succession), expand the first method:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data int;
set have;
__count = _n_;
run;

proc sort
  data=int
  out=want (drop=__count)
  noduprec
;
by __count;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Jul 2019 11:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/delete-row-if-it-s-identical-to-previous-one-if-the-current-row/m-p/577661#M13258</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-30T11:07:21Z</dc:date>
    </item>
  </channel>
</rss>

