SOUNDEX

SOUNDEX


SORT Index Level SPACE
Syntax SOUNDEX( string.expression {,code} )
Category BASIC
Type Function
Description returns the four-digit soundex code for a phonetic string expression.

The soundex code consists of the first letter of the word, plus values for the next three additional consonants. If there are less than three consonants, zeros are placed in the code.  Soundex codes are values given to consonants. Words with a similar arrangement of consonants have similar soundex codes, regardless of the actual spelling. Also, similar sounding consonants may have the same soundex code.

The "code" option provides compatibility with the R83 "U00B9" user exit, where:

code=0  Original census soundex; R83 compatible (default)

code=1  English-language soundex
Options
See Also soundex statements & functions functions u00b9
Example crt soundex("PICK")
This outputs "P2".
Warnings
Compatibility D3 7.0 AP R83
SORT Index Level SPACE