<?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 can delete all the rows of patient ids when they appear more than once? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-can-delete-all-the-rows-of-patient-ids-when-they-appear-more/m-p/856837#M82449</link>
    <description>&lt;P&gt;The way i would tackle this would be with the datastep.&lt;/P&gt;
&lt;P&gt;You would need to first sort the data with a proc sort&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=test ;&lt;/P&gt;
&lt;P&gt;by patientid;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; set test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; by patientid;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if first.patientid=1 and last.patientid=1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;I would recommend you take the elearning programming 1 course on our website. Its free and you will learn lots of great things to start using SAS. Here is a link&amp;nbsp;&lt;A href="https://support.sas.com/edu/schedules.html?id=16738&amp;amp;ctry=US" target="_blank"&gt;SAS Training in the United States -- SAS® Programming 1: Essentials&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 14:02:34 GMT</pubDate>
    <dc:creator>CarmineVerrell</dc:creator>
    <dc:date>2023-02-02T14:02:34Z</dc:date>
    <item>
      <title>How can delete all the rows of patient ids when they appear more than once?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-delete-all-the-rows-of-patient-ids-when-they-appear-more/m-p/856834#M82448</link>
      <description>&lt;P&gt;Hello people&lt;/P&gt;&lt;P&gt;i am currently trying to solve a problem, but have not managed so far. i am quite new to programming, so it may also be that the solution is very simple.&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-02-02 144928.png" style="width: 645px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80025i1D656EC04C074031/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-02-02 144928.png" alt="2023-02-02 144928.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My goal is to have only those on my new list that have only one entry.&lt;/P&gt;&lt;P&gt;Can someone please help me here?&lt;/P&gt;&lt;P&gt;Best thanks in advance&lt;/P&gt;&lt;P&gt;cnn&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-delete-all-the-rows-of-patient-ids-when-they-appear-more/m-p/856834#M82448</guid>
      <dc:creator>cnn96</dc:creator>
      <dc:date>2023-02-02T13:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can delete all the rows of patient ids when they appear more than once?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-can-delete-all-the-rows-of-patient-ids-when-they-appear-more/m-p/856837#M82449</link>
      <description>&lt;P&gt;The way i would tackle this would be with the datastep.&lt;/P&gt;
&lt;P&gt;You would need to first sort the data with a proc sort&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=test ;&lt;/P&gt;
&lt;P&gt;by patientid;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; set test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; by patientid;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if first.patientid=1 and last.patientid=1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;I would recommend you take the elearning programming 1 course on our website. Its free and you will learn lots of great things to start using SAS. Here is a link&amp;nbsp;&lt;A href="https://support.sas.com/edu/schedules.html?id=16738&amp;amp;ctry=US" target="_blank"&gt;SAS Training in the United States -- SAS® Programming 1: Essentials&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 14:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-can-delete-all-the-rows-of-patient-ids-when-they-appear-more/m-p/856837#M82449</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2023-02-02T14:02:34Z</dc:date>
    </item>
  </channel>
</rss>

