<?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: Filtering data by frequency in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153741#M12060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want companies for which you have at least ten years data, why do you select where count(*)=10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think that you'd want count(*) ge 10 and max(dvc) gt 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 02:31:00 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-05-12T02:31:00Z</dc:date>
    <item>
      <title>Filtering data by frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153740#M12059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to filter down a list of all listed US companies and their dividend payouts over 10 years, to a list of all listed US companies which have at least one dividend payout over the 10 year period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to filter out any companies which do not operate over the full 10 years by doing the following;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;CREATE TABLE DDM AS&lt;/P&gt;&lt;P&gt;SELECT LPERMNO, datadate, fyear, csho, dvc, ni &lt;/P&gt;&lt;P&gt;FROM work.data&lt;/P&gt;&lt;P&gt;GROUP BY 1&lt;/P&gt;&lt;P&gt;HAVING COUNT(*)=12;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which took me long enough in itself, yet this list is not all that I require as the companies must also be paying dividends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of filtering the data subject to the above, but also subject to the criteria that AT LEAST 1 'dvc' is &amp;gt; 0 for each LPERMNO (Company)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to get rid of all LPERMNO's which have a 'dvc' = 0, just the LPERMNO's where no 'dvc's exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if more clarification is required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 01:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153740#M12059</guid>
      <dc:creator>JNK1</dc:creator>
      <dc:date>2014-05-12T01:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data by frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153741#M12060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want companies for which you have at least ten years data, why do you select where count(*)=10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think that you'd want count(*) ge 10 and max(dvc) gt 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 02:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153741#M12060</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-05-12T02:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering data by frequency</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153742#M12061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, my data has already been collected and filtered to be from December 1997 to December 2008, hence why there are 12 observations per company (LPERMNO). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(dvc) GT 0 did the trick though, thank you so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 02:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Filtering-data-by-frequency/m-p/153742#M12061</guid>
      <dc:creator>JNK1</dc:creator>
      <dc:date>2014-05-12T02:46:43Z</dc:date>
    </item>
  </channel>
</rss>

