FTP to Mainframe (Z/OS)
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
FTP to Mainframe (Z/OS)
Hi,
is it possible to use the FTP command to transfer files to an IBM Mainframe (Z/OS)?
regards,
Ivan Ulens
is it possible to use the FTP command to transfer files to an IBM Mainframe (Z/OS)?
regards,
Ivan Ulens
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
Re: FTP to Mainframe (Z/OS)
I receive following message:
E: 2020-08-27 11:13:50: 550 Mismatched quotes on pathname 'CG061.SMD935'/14022020.xml
E: 2020-08-27 11:13:50: 550 Mismatched quotes on pathname 'CG061.SMD935'/14022020.xml
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
Re: FTP to Mainframe (Z/OS)
see attachement
- Attachments
-
- 2020-08-27 11_20_52-Window.jpg (14.22 KiB) Viewed 12839 times
Re: FTP to Mainframe (Z/OS)
I think that you have to use remote folder name without quotes
only CG061.SMD935 (not 'CG061.SMD935')
I think that 'CG061.SMD935'/14022020.xml is invalid name therefore you get an error
only CG061.SMD935 (not 'CG061.SMD935')
I think that 'CG061.SMD935'/14022020.xml is invalid name therefore you get an error
Oleg Yershov
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
Re: FTP to Mainframe (Z/OS)
on Z/OS there are some rules: a dataset name without quotes will change with the name of the user in prefix.
example:
* FTP connect with USER FTP001. The dataset (file) SMD935 will change to FTP001.SMD935
* FTP connect with USER FTP001. The dataset (file) 'CG061.SMD935' will not change
example:
* FTP connect with USER FTP001. The dataset (file) SMD935 will change to FTP001.SMD935
* FTP connect with USER FTP001. The dataset (file) 'CG061.SMD935' will not change
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
Re: FTP to Mainframe (Z/OS)
If I change the remote folder to CG061.SMD935, I receive
E: 2020-08-27 11:51:33: 501 Invalid data set name "CG061.SMD935/14022020.xml". Use MVS Dsname conventions.
E: 2020-08-27 11:51:33: 501 Invalid data set name "CG061.SMD935/14022020.xml". Use MVS Dsname conventions.
Re: FTP to Mainframe (Z/OS)
What database/dataset?
FTP - File Transfer Protocol. Only files and folders
I'm afraid that you have to refer to documentation of Z/OS
FTP - File Transfer Protocol. Only files and folders
I'm afraid that you have to refer to documentation of Z/OS
Oleg Yershov
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
Re: FTP to Mainframe (Z/OS)
when I use native FTP on my Windows PC I use the following PUT statement and this works fine:
put "C:\Data\Edison\14022020.xml" "'CG061.SMD935'"
put "C:\Data\Edison\14022020.xml" "'CG061.SMD935'"
-
- Posts: 19
- Joined: Mon Oct 28, 2019 12:38 pm
Re: FTP to Mainframe (Z/OS)
a dataset is a file