<?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 do i retain observations with more than 4 reportdates in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184839#M46991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add in a where clause, 1950 to 1960 is an 11 year period though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;create table want as&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;select companyid, year, count(*) as count_years&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;from have&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;where year between 1950 and 1960&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;group by companyid&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;having count(year)&amp;gt;10;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;quit;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/207612/edit" style="font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Apr 2014 02:53:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-04-18T02:53:59Z</dc:date>
    <item>
      <title>how do i retain observations with more than 4 reportdates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184836#M46988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, thank you in advance for your kind attention.&lt;/P&gt;&lt;P&gt;i have 2 variables: COMPANYID and YEAR&lt;/P&gt;&lt;P&gt;COMPANYID is between 1-100. YEAR can be anywhere between 1950-2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep the COMPANYIDs that have more than 10 years within them. &lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;companyID 1 may have year 1950, 1951 only. i want to drop companyID 1 completely because i only see 2 years and my threshold is 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide me your guidance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 01:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184836#M46988</guid>
      <dc:creator>aarony</dc:creator>
      <dc:date>2014-04-18T01:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: how do i retain observations with more than 4 reportdates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184837#M46989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the years need to be consecutive, or do any 10 years count?&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;select companyid, year, count(*) as count_years&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by companyid&lt;/P&gt;&lt;P&gt;having count(year)&amp;gt;10;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 02:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184837#M46989</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-18T02:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do i retain observations with more than 4 reportdates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184838#M46990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your reply reeza. &lt;/P&gt;&lt;P&gt;what if i want them to fall in a specific time period? ie: 1950-1960? thank you much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 02:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184838#M46990</guid>
      <dc:creator>aarony</dc:creator>
      <dc:date>2014-04-18T02:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: how do i retain observations with more than 4 reportdates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184839#M46991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add in a where clause, 1950 to 1960 is an 11 year period though. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;proc sql;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;create table want as&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;select companyid, year, count(*) as count_years&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;from have&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;where year between 1950 and 1960&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;group by companyid&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;having count(year)&amp;gt;10;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;quit;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/207612/edit" style="font-style: inherit; font-family: inherit; color: #0e66ba;"&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2014 02:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-do-i-retain-observations-with-more-than-4-reportdates/m-p/184839#M46991</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-18T02:53:59Z</dc:date>
    </item>
  </channel>
</rss>

