<?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 Deleting records by id based on condition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624549#M184005</link>
    <description>&lt;P&gt;I tried searching a few different things about deleting records but must not have been clear on what I was wanting to do because I couldn't find what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set that has client id, assessment, date, and scores by question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assessment either has a value of first or last&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each client_id they either have a first OR a first and a last&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want my final dataset to only include clients who had both a first and a last assessment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HAVE and WANT example data attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 17:58:04 GMT</pubDate>
    <dc:creator>ddavies</dc:creator>
    <dc:date>2020-02-13T17:58:04Z</dc:date>
    <item>
      <title>Deleting records by id based on condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624549#M184005</link>
      <description>&lt;P&gt;I tried searching a few different things about deleting records but must not have been clear on what I was wanting to do because I couldn't find what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set that has client id, assessment, date, and scores by question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assessment either has a value of first or last&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each client_id they either have a first OR a first and a last&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want my final dataset to only include clients who had both a first and a last assessment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HAVE and WANT example data attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 17:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624549#M184005</guid>
      <dc:creator>ddavies</dc:creator>
      <dc:date>2020-02-13T17:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting records by id based on condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624550#M184006</link>
      <description>&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE work.WANT AS&lt;/P&gt;&lt;P&gt;SELECT b.*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(SELECT &lt;SPAN&gt;client_id&amp;nbsp;FROM work.HAVE WHERE assessment = 'LAST') a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INNER JOIN work.HAVE b on a.client_ID = b.client_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QUIT;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624550#M184006</guid>
      <dc:creator>utrocketeng</dc:creator>
      <dc:date>2020-02-13T18:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting records by id based on condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624561#M184009</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 18:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624561#M184009</guid>
      <dc:creator>ddavies</dc:creator>
      <dc:date>2020-02-13T18:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting records by id based on condition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624562#M184010</link>
      <description>glad to help out!</description>
      <pubDate>Thu, 13 Feb 2020 18:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Deleting-records-by-id-based-on-condition/m-p/624562#M184010</guid>
      <dc:creator>utrocketeng</dc:creator>
      <dc:date>2020-02-13T18:17:10Z</dc:date>
    </item>
  </channel>
</rss>

