BookmarkSubscribeRSS Feed
noobs
Fluorite | Level 6

I am struggling to understand what is better to use as an operator while resolving the requirement to mimic SOUNDS LIKE feature. The data set contains variable Emp_Name that has values like

Reddy

Reddie

Redy

and output data set needs to filter all these observations. So I can use

WHERE Emp_Name =* 'Red' ;

What is primary difference between =* and =: ?

Very new to Base SAS programming so data cleansing is my challenge.

1 REPLY 1
Reeza
Super User

=* uses the soundex algorithm

SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition

=: basically checks if the word starts with the same letters. Case matters, so if it was 'red' you would get no entries returned.

24851 - Using a Colon Modifier to Select Observations with Values Beginning with a Specific Characte...

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2532 views
  • 4 likes
  • 2 in conversation