basic.soundex Function/BASIC Program

basic.soundex

Command basic.soundex Function/BASIC Program
Applicable release versions: AP, R83
Category BASIC Program (486)
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
Syntax soundex(string.expression{,code})
Options
Example
crt soundex("PICK")
This outputs "P2".
Purpose
Related tcl.soundex
basic.statements
basic.functions
ue.00b9