<?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: Count Members as of 15th of each month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Count-Members-as-of-15th-of-each-month/m-p/87828#M289330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to provide a little information about the structure of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also want to look at the alignment option for intnx which can allow you compare to the same day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 21:52:42 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2013-03-25T21:52:42Z</dc:date>
    <item>
      <title>Count Members as of 15th of each month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-Members-as-of-15th-of-each-month/m-p/87827#M289329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have done a data step that would count member months for past 3 years. But I have been asked to make sure that my query does member month count as of 15th of each month...and I got suddenly confused and not sure of my code.&lt;/P&gt;&lt;P&gt;Here is what I am traying to achieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have eligibility file for members , meaning all 3 year worth of data. I need to check if a member was active each month on the 15th of each month, for past 3 years. If so then he gets count of 1 for been active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done something like this ,where effdt/end date in the data step is a field from the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; array mos [1:37] &amp;amp;monthlist;&lt;/P&gt;&lt;P&gt;set mbrcov ;&lt;/P&gt;&lt;P&gt;mcount=0&lt;/P&gt;&lt;P&gt;do I=1 to 37;&lt;/P&gt;&lt;P&gt;if intnx('month', 01mar10,I-1) &amp;gt; effdt and&lt;/P&gt;&lt;P&gt;intnx('month', 01mar10,I-1) &amp;lt; enddt then mos&lt;I&gt;=1;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;else mos&lt;I&gt;=0;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;mcount=mcount+mos&lt;I&gt;;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I modify this so I check that is active on the 15th of each month? I think answer is right there in front of me,but I just don't see it after looking at it soo long. Thanks for advise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 18:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-Members-as-of-15th-of-each-month/m-p/87827#M289329</guid>
      <dc:creator>Karo_22</dc:creator>
      <dc:date>2013-03-25T18:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count Members as of 15th of each month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-Members-as-of-15th-of-each-month/m-p/87828#M289330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to provide a little information about the structure of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also want to look at the alignment option for intnx which can allow you compare to the same day of the month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 21:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-Members-as-of-15th-of-each-month/m-p/87828#M289330</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-03-25T21:52:42Z</dc:date>
    </item>
  </channel>
</rss>

