Generates a soundex key for use in GSFFSET.
Syntax
01 LSTATUS PIC 9(9) BINARY.
01 NAME PIC X(USERLEN).
*
CALL "GSSNDX" USING NAME, LSTATUS.
Arguments
NAME String to convert to a soundex key. Input.
LSTATUS Return code. Output.
Return Values
Soundex key
Notes
This procedure generates a soundex key for a street name. Use it in conjunction with GSFFSEG when you want to perform a soundex search. The soundex key, when combined with a locale (state and city), is the primary index into the GeoStan databases. Searching by soundex allows you to use your own scoring and matching mechanism for geocoding.
GeoStan uses a modified version of the standard soundex algorithm first published by Donald Knuth. The modifications made by Precisely include special treatment of certain prefixes such as MAC, KN, and WR; special treatment for numeric street names; and an encoding scheme to pack the key into the smallest number of bits.