Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SOUNDEX Function dysfunction #40

Open
mgrossmann opened this issue Sep 17, 2019 · 1 comment
Open

The SOUNDEX Function dysfunction #40

mgrossmann opened this issue Sep 17, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mgrossmann
Copy link

The SOUNDEX function produces certain codes that represent the syllabic sounds of a word. Thereby, allowing the processing of words by how they sound (enunciated) vs how they are spelled. The BRexx/370 version of SOUNDEX being ported from the original BRexx produces a code that differs from that established by the BRexx documentation. For example, the BRexx documentation indicates that ‘monday’ and ‘mandei’ have equivalent sounds (in English). After evaluation by the SOUNDEX() Built-in- Function (BiF), they both should produce the same code, M530:
SOUNDEX(‘monday’) :==> SOUNDEX(‘mandei’) :==> ‘M530’
However, in BRexx/370, the SOUNDEX() BiF produces 2 different codes from each other as well as different from that produced from the original BRexx, per the documentation. When the SOUNDEX() BiF is employed to evaluate the same 2 strings what is produced can only fully be displayed in hex.

I surmise that the differences may be due to a complication of the character encoding (i.e., ASCII vs. EBCDIC) somewhere within the Soundex algorithm. Anyway, take a look at the screen-shots following for a glimpse of the SOUNDEX() function in action.

@mgrossmann mgrossmann self-assigned this Sep 17, 2019
@mgrossmann mgrossmann added the bug Something isn't working label Sep 17, 2019
@mgrossmann mgrossmann added this to the V2R2 milestone Sep 17, 2019
@mgrossmann
Copy link
Author

This is indeed a problem with ASCII and EBCDIC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant