superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You'll want to read 4.0 Chapter 4. Transferring data using the File Transfer Protocol
and
5.0 Chapter 5. FTP subcommands in the z/OS V1R7.0 Comm Svr: IP User's Guide and Commands.
The program name is FTP. There are optional parameters.
The required DD names are INPUT and OUTPUT.
Optional DD names are NETRC and FTPDATA.
A typical job looks like this:
Code: |
//FTPSTEP EXEC PGM=FTP,PARM='EXIT'
//SYSUT1 DD DISP=SHR,DSN=DATASET.TO.SEND
//NETRC DD DISP=SHR,DSN=TCPIP.NETRC.DATASET
//OUTPUT DD SYSOUT=*
//INPUT DD *
ip_address or server_name
userid and password (optional if specified in NETRC)
sendsite
ascii
cd server_directory
put //DD:SYSUT1 filename.ext
qui
/*
|
Also, before doing any data transfers using FTP, make sure that you check with your System Administrators to make sure that you and/or your job have the appropriate RACF security to even execute the FTP program. Also, make sure that you check with your Network Administrators to make sure that the TCP/IP network path exists between the mainframe and your target FTP server, and that you can properly navigate any firewalls that may be in place. |
|