Command Line file xfer with ZOS Partitioned files

Core FTP client questions and answers
Post Reply
Bonnie Heinecke
Posts: 2
Joined: Wed Apr 02, 2008 12:33 am

Command Line file xfer with ZOS Partitioned files

Post by Bonnie Heinecke »

Trying to set up Command Line bat file to transfer files to and from ZOS mainframe using Core FTP Lite. Example of the cmd:
C:\"Program Files"\CoreFTP\coreftp.exe -d -s -abs ftp://userid:pwd@ftp site.com/PDS.JCL(member)/ -p u:\FTP\ -FN junkt2 -log u:\FTP\logscr

The 'pds.jcl(member)' is a partitioned d/s on the ZOS mainframe. The Core FTP log says the file name is invalid. I have tried a non-PDS file and get invalid also (it prefixes the file name with my userid).
1. How dow I tell the command line interface a Partioned dataset name and then also pass the member name?
2. How do I tell the CLi to use exactly what I type in? In other FTP products I can put quotes around it and the information will be sent as typed in (didn't work with core ftp). I tried putting 'ABS' and I tried '-ABS' as switches but must have the format wrong.
3. How do I pass text comments to the mainframe FTP server? I need to pass this text "quote site filetype=jes". This tells the mainframe FTP that it is actually supposed to execute the file specified by the next set of commands. [in the standard FTP product the next command would be 'get pds.jcl(member) ftp.jes.txt ', which is what I am trying to replicate using Core FTP]
Bonnie Heinecke
Posts: 2
Joined: Wed Apr 02, 2008 12:33 am

Post by Bonnie Heinecke »

OK, I got COREFTP to retrieve a PDS member for me, in ASCII. Using the following format:

C:\"Program Files"\CoreFTP\coreftp.exe -d -s -a -o ftp://userid:pw@ftpsite.com/directory/'file(member)' -p u:\FTP\ -FN junkt3 -log u:\FTP\logscr


I still need to know how to send the 'quote.....' information though....
Post Reply