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

vsam.js returns ebcdic #18

Open
mkhouse8 opened this issue Jan 24, 2020 · 0 comments
Open

vsam.js returns ebcdic #18

mkhouse8 opened this issue Jan 24, 2020 · 0 comments

Comments

@mkhouse8
Copy link

When I console.log the record the data that is displayed appears to be EBCDIC encoded. Is there a setting I'm missing?

I have several other questions as well but not sure if I should open a separate ticket for each one or is there a better place to ask.

node v12.13.0
_BPXK_AUTOCVT=ON
_CEE_RUNOPTS="FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)"

Console output.
record=hexadecmal
-bash-4.3$ node app
BCFILE.DATA Found
Record read { key: '@����', record: 'f24040404040d7d3e4e240d9c5c6e4d5c440e3d6' }
f24040404040d7d3e4e240d9c5c6e4d5c440e3d6

record=string
-bash-4.3$ node app
BCFILE.DATA Found
Record read { key: '@����', record: '�@@@@@����@������@��' }
�@@@@@����@������@��

Thanks,
Matt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant