| Date: | Fri, 7 Oct 2011 04:32:16 -0700 |
| Reply-To: | Irin later <irinfigvam@yahoo.com> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Irin later <irinfigvam@YAHOO.COM> |
| Subject: | Dates' gap |
| Content-Type: | text/plain; charset=iso-8859-1 |
I have a table with multiple fragments of continues enrollment. I marke with astericks records after gap in dates
memid EnrDate enrTermDate
92222 01/10/2009 02/12/2009
92222 02/13/2009 03/22/2009
92222 03/30/2010 04/29/2010 *
92222 05/30/2010 06/10/2010
92222 06/12/2010 10/13/2010 *
92222 10/14/2010 12/31/2010
have to extract:
- those records for each patients after gap in dates between fragments of enrollment .
For example, I need for the patient with memid=92222
92222 03/30/2010 04/29/2010 *
92222 06/12/2010 10/13/2010 *
How can I implement it with ode? Could you please give me a hand? Thank you in advance,
Irin
|