<?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: Enrollment 5 years after birth in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/678755#M204917</link>
    <description>Thanks! I tried this code and it worked!</description>
    <pubDate>Sun, 23 Aug 2020 15:55:50 GMT</pubDate>
    <dc:creator>ftahsin</dc:creator>
    <dc:date>2020-08-23T15:55:50Z</dc:date>
    <item>
      <title>Enrollment 5 years after birth</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/676543#M204015</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a Medicaid dataset. I have enrollment and disenrollment month and year for children. The enrollment month and year is the month and year of birth for the child. I have the following data-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID begin :MONYY7. end :MONYY7.;
format begin MONYY7. end MONYY7.;
datalines;
6816494 	FEB2006	MAY2006
6816515	JAN2006	OCT2008
6816515	DEC2008 JAN2019
6819880	FEB2006	JAN2019
6820127	JAN2006	MAR2014
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want the following data-&lt;/P&gt;&lt;P&gt;But, I want it for 5 years past the baby's birth date/enrollment date. The example data below only show for 1 year past the birth/enrollment date.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input ID month $ year enroll;
datalines;
6816494	FEB	 2006	1
6816494	MAR 2006	1
6816494	APR	 2006	1
6816494	MAY 2006	1
6816494	JUN 2006	0
6816494	JUL	2006	0
6816494	AUG 2006	0
6816494	SEP	2006	0
6816494	OCT 2006	0
6816494	NOV 2006	0
6816494	DEC 2006	0
6816494	JAN	2007	0
6816515	JAN	2006	1
6816515	FEB 2006	1
6816515	MAR 2006	1
6816515	APR	2006	1
6816515	MAY 2006	1
6816515	JUN 2006	1
6816515	JUL	2006	1
6816515	AUG 2006	1
6816515	SEP	2006	1
6816515	OCT 2006	1
6816515	NOV 2006	1
6816515	DEC 2006	1
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you so much. Your assistance with the code is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 16:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/676543#M204015</guid>
      <dc:creator>ftahsin</dc:creator>
      <dc:date>2020-08-13T16:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enrollment 5 years after birth</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/676616#M204037</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID begin :MONYY7. end :MONYY7.;
format begin MONYY7. end MONYY7. ;
put begin = end = date9.;
do i = 0 to 59;
 d = intnx('month',begin,i,'B');
 year = year(d);
 month = put(d,monname3.);
 enroll = (d&amp;lt;= end);
 output;
 drop i d begin end;
end;
datalines;
6816494 	FEB2006	MAY2006
6816515	JAN2006	OCT2008
6816515	DEC2008 JAN2019
6819880	FEB2006	JAN2019
6820127	JAN2006	MAR2014
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 23:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/676616#M204037</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-08-13T23:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Enrollment 5 years after birth</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/678755#M204917</link>
      <description>Thanks! I tried this code and it worked!</description>
      <pubDate>Sun, 23 Aug 2020 15:55:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Enrollment-5-years-after-birth/m-p/678755#M204917</guid>
      <dc:creator>ftahsin</dc:creator>
      <dc:date>2020-08-23T15:55:50Z</dc:date>
    </item>
  </channel>
</rss>

