<?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 how to remove  non repetitive in sas as per below example in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920677#M362609</link>
    <description>&lt;PRE&gt;data abcd;&lt;BR /&gt;input ID;&lt;BR /&gt;cards;&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;2&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;answer would be like below :&lt;BR /&gt;Output:&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;3&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 11:58:19 GMT</pubDate>
    <dc:creator>ganeshmule</dc:creator>
    <dc:date>2024-03-18T11:58:19Z</dc:date>
    <item>
      <title>how to remove  non repetitive in sas as per below example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920677#M362609</link>
      <description>&lt;PRE&gt;data abcd;&lt;BR /&gt;input ID;&lt;BR /&gt;cards;&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;2&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;answer would be like below :&lt;BR /&gt;Output:&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;3&lt;BR /&gt;3&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 11:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920677#M362609</guid>
      <dc:creator>ganeshmule</dc:creator>
      <dc:date>2024-03-18T11:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove  non repetitive in sas as per below example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920683#M362610</link>
      <description>&lt;P&gt;I think what you mean is to keep only the first group of records for any given ID:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abcd;
input ID;
cards;
1
1
1
2
2
1
2
3
3
3
;
run;

data want;
  set abcd;
  by id notsorted;
  if _n_=1 then do;
    declare hash h();
      h.definekey('id');
      h.definedone();
  end;
  if h.check()=0 then delete;
  if last.id then h.add();
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Mar 2024 12:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920683#M362610</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2024-03-18T12:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove  non repetitive in sas as per below example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920727#M362638</link>
      <description>&lt;P&gt;Thanks it works&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 13:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-non-repetitive-in-sas-as-per-below-example/m-p/920727#M362638</guid>
      <dc:creator>ganeshmule</dc:creator>
      <dc:date>2024-03-18T13:44:08Z</dc:date>
    </item>
  </channel>
</rss>

