<?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: Keeping years that passed the critical point in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138003#M37081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input id obs year;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 12 2000&lt;/P&gt;&lt;P&gt;1 10 2000&lt;/P&gt;&lt;P&gt;2 17 2001&lt;/P&gt;&lt;P&gt;2 23 2001&lt;/P&gt;&lt;P&gt;3 35 2002&lt;/P&gt;&lt;P&gt;3 68 2002&lt;/P&gt;&lt;P&gt;3 54 2002&lt;/P&gt;&lt;P&gt;4 46 2000&lt;/P&gt;&lt;P&gt;4 61 2000&lt;/P&gt;&lt;P&gt;4 53 2000&lt;/P&gt;&lt;P&gt;4 32 2000&lt;/P&gt;&lt;P&gt;5 26 2001&lt;/P&gt;&lt;P&gt;6 14 2000&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from one where year=2000;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 04:46:04 GMT</pubDate>
    <dc:creator>sudi</dc:creator>
    <dc:date>2014-04-30T04:46:04Z</dc:date>
    <item>
      <title>Keeping years that passed the critical point</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138001#M37079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;Hi everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;I’m trying to solve this:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;I have a data set with three variables. Every ID has a year (2000 to 2002) but they have unlimited on Have data set, fortunately the IDs in this data set can’t have different year. For example: year 2000 appears 7 times on data set with three different IDs like the example below.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;What i need to do is to remove the years with less than 2 different IDs. Say for instance my data set looks like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background-color: white; border: none;" width="169"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: black;"&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: black;"&gt;Obs&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: black;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;17&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;23&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;35&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2002&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;68&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2002&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;54&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2002&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;46&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;61&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;53&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;32&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;26&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2001&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;Output should be like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background-color: white; border: none;" width="169"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: black;"&gt;ID&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: black;"&gt;Obs&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid black 1.0pt; border-left: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'inherit','serif'; color: black;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;46&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;61&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;53&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;32&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid black 1.0pt; border-top: none; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="34"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt;" valign="top" width="72"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid black 1.0pt; border-right: solid black 1.0pt; padding: 1.5pt 3.0pt 1.5pt 3.0pt;" valign="top" width="63"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: inherit, serif;"&gt;2000&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: .25in;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138001#M37079</guid>
      <dc:creator>zana</dc:creator>
      <dc:date>2014-04-29T17:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping years that passed the critical point</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138002#M37080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Based on your example, would 2001 be included in your final output?&amp;nbsp; Would 2002 be excluded from your final output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2014 17:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138002#M37080</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-04-29T17:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping years that passed the critical point</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138003#M37081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input id obs year;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 12 2000&lt;/P&gt;&lt;P&gt;1 10 2000&lt;/P&gt;&lt;P&gt;2 17 2001&lt;/P&gt;&lt;P&gt;2 23 2001&lt;/P&gt;&lt;P&gt;3 35 2002&lt;/P&gt;&lt;P&gt;3 68 2002&lt;/P&gt;&lt;P&gt;3 54 2002&lt;/P&gt;&lt;P&gt;4 46 2000&lt;/P&gt;&lt;P&gt;4 61 2000&lt;/P&gt;&lt;P&gt;4 53 2000&lt;/P&gt;&lt;P&gt;4 32 2000&lt;/P&gt;&lt;P&gt;5 26 2001&lt;/P&gt;&lt;P&gt;6 14 2000&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from one where year=2000;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 04:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138003#M37081</guid>
      <dc:creator>sudi</dc:creator>
      <dc:date>2014-04-30T04:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping years that passed the critical point</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138004#M37082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zana,&lt;/P&gt;&lt;P&gt;Considering the case as you have mentioned below: &lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif';"&gt; fortunately the IDs in this data set can’t have different year.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each ID will have distinctly one year only, In this scenario below code will help for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt; CREATE TABLE WANT AS &lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT A.ID, OBS, YEAR FROM ONE AS A INNER JOIN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT ID FROM (SELECT DISTINCT ID, YEAR FROM ONE) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP BY YEAR HAVING COUNT(YEAR) GT 2) AS B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON A.ID=B.ID;&lt;/P&gt;&lt;P&gt;QUIT; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 05:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138004#M37082</guid>
      <dc:creator>SKK</dc:creator>
      <dc:date>2014-04-30T05:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping years that passed the critical point</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138005#M37083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is good to solve this kind problem by SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by year&lt;/P&gt;&lt;P&gt;&amp;nbsp; having count(distinct id) gt 2;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 09:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keeping-years-that-passed-the-critical-point/m-p/138005#M37083</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-05-01T09:05:23Z</dc:date>
    </item>
  </channel>
</rss>

