BookmarkSubscribeRSS Feed
tulip
Calcite | Level 5
Hi, pros:

Here is the statement as follows:

where find(concept, 'Condition1','i')>0 or find(concept, 'Condition2','i')>0

however, I would like to like conditions to be listed in the following way conceptually so that it is easier to manage plus achieving the find function.

where id in ('A', 'B', 'C');

Your help is appreciated so much. Tulip.
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
To use the simple syntax of the IN operator means that you have to pre-process your data to pull the conditions of interest out of the concept variable. It is really a case of 'pay me now or pay me later', at some point you have to parse the variable concept.

TANSTAAFL

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 928 views
  • 0 likes
  • 2 in conversation