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:
//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)
put //DD:SYSUT1 filename.ext
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.