LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 11 Mar 2010 07:47:36 -0800
Reply-To:     Ruby <windofoct@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ruby <windofoct@GMAIL.COM>
Organization: http://groups.google.com
Subject:      How to find out the desired string
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

Hi SAS experts,

I need to find out the qualified enrollees from enrollment dataset based on the following specification - Enrollees have been enrolled in the program for at least 6 months and with no more than one month gap in enrollment. I also have a character variable called "flag" to indicate monthly enrollment status.For example, "010000000001" stands for the member enrolled in February and December. Here is my code. if index(flag,'111111')^=0 or index(flag,'1011111')^=0 or index(flag,'1101111')^=0 or index(flag,'1110111')^=0 or index(flag,'1111011')^=0 or index(flag,'1111101')^=0 then output; Do you have a better way to code my question?

Thanks very much!


Back to: Top of message | Previous page | Main SAS-L page