<?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 to get specific year members in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100076#M258052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your data only have the 12 months you care about in it? are there unique entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you can just count how many times a member is present.&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 id, month, case when count(id) =12 then 'Active' else 'Inactive' end as status&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2013 16:26:26 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-02-06T16:26:26Z</dc:date>
    <item>
      <title>How to get specific year members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100075#M258051</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 have a large data and I would like to split into two parts, one will be for the people who were active in 12 months and another will be the people who were not active. So if the member has 12 months = active if not member is inactive. I would like to add another column indicating active, inactive Here's an example of my data. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 0px; padding-left: 5.4pt; padding-right: 5.4pt; margin-left: 4.65pt; padding-top: 0px;" width="161"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;ID#&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;MONTH&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;January 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;February 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;March 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;April 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;May 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;June 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;July 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;August 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;September 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;October 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;November 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;December 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;January 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;February 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;March 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;April 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;March 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;April 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;May 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="27"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding-left: 5.4pt; padding-right: 5.4pt;" valign="bottom" width="135"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;June 1, 2011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 16:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100075#M258051</guid>
      <dc:creator>AliMN</dc:creator>
      <dc:date>2013-02-06T16:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get specific year members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100076#M258052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your data only have the 12 months you care about in it? are there unique entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you can just count how many times a member is present.&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 id, month, case when count(id) =12 then 'Active' else 'Inactive' end as status&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 16:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100076#M258052</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-06T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get specific year members</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100077#M258053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza that was great help. I did a little tweak and worked. Again thanks all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 17:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-specific-year-members/m-p/100077#M258053</guid>
      <dc:creator>AliMN</dc:creator>
      <dc:date>2013-02-06T17:00:41Z</dc:date>
    </item>
  </channel>
</rss>

