The S7 modifier is used with the SOUNDEX1 routine to ensure compatibility with Series 7. The S7 modifier applies the same algorithm as in Series 7 to SOUNDEX1 routine. Use S7 when you want to obtain the same linking results as Series 7.
Note: All SOUNDEX related routines are limited to working with attribute sizes of 256
characters. If the attribute length exceeds 256 characters, the algorithm will be applied
to the first 256 characters for all SOUNDEX routines. The algorithm will be applied to the
last non-blank 256 characters for all RSOUNDEX routines.
Algorithm
- Capitalize all characters in the string.
- Retain the first character of the string.
- After the first position, convert all the following characters to blank: A, E, I, O, U, H, W, Y.
- Change characters from the following sets into the corresponding digits given:
From characters To digit B, F, P, V
1
C, G, J, K, Q, S, X, Z
2
D, T
3
L
4
M, N
5
R
6
- Return the first four characters of the string.
Score |
Description |
---|---|
0 |
Case 1: Both strings are blank Case 2: Neither string is blank and they are not equal. |
50 |
One string is blank; the other string is non-blank. |
100 |
Strings are equal. |