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

Support UCS-2 File Transfers #94

Open
awharn opened this issue Sep 14, 2023 · 2 comments
Open

Support UCS-2 File Transfers #94

awharn opened this issue Sep 14, 2023 · 2 comments
Assignees

Comments

@awharn
Copy link

awharn commented Sep 14, 2023

Some codepages contain characters that cannot be represented in Extended ASCII and are stored in EBCDIC on the mainframe (such as datasets in codepage 939). With the current implementation, it is not possible to download a dataset to a local machine over FTP and have it appear with special (Japanese) characters. However, z/OS FTP supports sending these files by first converting them into UCS-2 using TYPE U 2 and SITE UCSHOSTCS=(codepage). It would be nice to have similar functionality in zos-node-accessor.

@std4lqi
Copy link
Member

std4lqi commented Sep 19, 2023

The site() method is provided in zos-node-accessor, allowing you to send any site parameters. The downloadDataset() in master and getDataset() in 1.0.x accept site parameters as well.

Let us know please, if the above cannot work in your scenario. Thanks!

@std4lqi
Copy link
Member

std4lqi commented Nov 7, 2023

Hi @awharn, can I know whether you tried site() or any problem?

@std4lqi std4lqi self-assigned this Nov 7, 2023
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

2 participants