FTP to Mainframe (Z/OS)

Discuss RoboTask here
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

Hi,
is it possible to use the FTP command to transfer files to an IBM Mainframe (Z/OS)?
regards,
Ivan Ulens
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP to Mainframe (Z/OS)

Post by Oleg »

Why not if Z/OS supports FTP protocol?
Oleg Yershov
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

Re: FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

I receive following message:
E: 2020-08-27 11:13:50: 550 Mismatched quotes on pathname 'CG061.SMD935'/14022020.xml
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

Re: FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

see attachement
Attachments
2020-08-27 11_20_52-Window.jpg
2020-08-27 11_20_52-Window.jpg (14.22 KiB) Viewed 8356 times
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP to Mainframe (Z/OS)

Post by Oleg »

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
Oleg Yershov
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

Re: FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

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
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

Re: FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

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.
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: FTP to Mainframe (Z/OS)

Post by Oleg »

What database/dataset?
FTP - File Transfer Protocol. Only files and folders
I'm afraid that you have to refer to documentation of Z/OS
Oleg Yershov
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

Re: FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

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'"
ivan.ulens@vcst.be
Posts: 18
Joined: Mon Oct 28, 2019 12:38 pm

Re: FTP to Mainframe (Z/OS)

Post by ivan.ulens@vcst.be »

a dataset is a file
Post Reply