Author: Pedro
Subject: Reply to: PC to Host for unicode file
Posted: Tue May 17, 2016 9:33 pm (GMT 5.5)
I have been working with UTF-8 files rather than unicode. Perhaps my setup will be of help:
Start FTP from Windows by specifying a bat file
The contents of the BAT file:
The target of the FTP has to be a RECFM=VB file because the source file has a multi-byte encoding scheme. And by 'has to be', I mean FTP will not allow it otherwise.
Most people do not have an FTP server on their Windows system, so you have to FTP from Windows to MVS.
_________________
Pedro Vera
Subject: Reply to: PC to Host for unicode file
Posted: Tue May 17, 2016 9:33 pm (GMT 5.5)
I have been working with UTF-8 files rather than unicode. Perhaps my setup will be of help:
Start FTP from Windows by specifying a bat file
Code: |
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Dir1>ftp -s:c:\\myftp.BAT |
The contents of the BAT file:
Code: |
open myMVS.acme.COM PEDRO mypassword quote site en=mb quote site mbd=(037,utf-8) quote site trailingblanks quote site ISPFSTATS LCD C:/my/directory/PLI CD 'PEDRO.MY.PDS.VB' PUT MYPROG.PLI MYPROG QUIT EXIT |
The target of the FTP has to be a RECFM=VB file because the source file has a multi-byte encoding scheme. And by 'has to be', I mean FTP will not allow it otherwise.
Most people do not have an FTP server on their Windows system, so you have to FTP from Windows to MVS.
_________________
Pedro Vera