Hello SAS community. I am trying to extract a text segment based on a keyword from long, unstandardized text strings. I need the text string to include 30 characters prior to the key word and 50 characters after the key word. I am using the following code to do this. The starting position of the extracted string appears to be accurate, but the end point varies dramatically. I also get many warning notes in the log. I've tried any number of parenthetical configurations around the FIND arguments to no avail. Does anyone have any advice? [jobtext is the variable that I am searching through. Experience is the key word that I'm looking for.] extract= substr(jobtext,FIND(jobtext,"experience",'i')-20, FIND(jobtext,"experience",'i')+30); Thank you, Brandi
... View more