Searching literals

Reply
Contributor
Posts: 40

Searching literals

I am doing literal searches for several variables for specific terms.

 

One of these variables contains a description of up to 100 terms. So I am doing a search on this variable for a specific term: One of these terms is "OD". But I do not want to count them if the terms are "probable OD" or "suspected OD".

 

I am using these 2 functions: findw and index, are these any other better functions to use?

thanks!

Trusted Advisor
Posts: 1,346

Re: Searching literals

Please show example, using a starting SAS data set, and the desired result.
Super User
Posts: 23,778

Re: Searching literals

PRXMATCH, which is regular expressions. They're incredibly powerful for searching text strings. 

Ask a Question
Discussion stats
  • 2 replies
  • 115 views
  • 0 likes
  • 3 in conversation