Example 6: Forcing PASSIVE mode using the FTPCMDS inline DD statement
Figure 1 shows the FTP connection set up from the FTP client to the FTP server using the FTP locsite fwfriendly command.
The FWFriendly parameter specifies that the FTP
client is firewall-friendly. For additional details, see the topic
about LOCSIte subcommand--Specify
site information to the local host in z/OS Communications Server: IP User's Guide and Commands.
Note: When
the FTP server has an IPv6 address, data connections are always set
up from the FTP client to the FTP server without reference to the
FWFriendly setting.
Figure 1. FTP
forcing PASSIVE mode
//FTP EXEC PGM=AMAPDUPL
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=H44IPCS.WESSAMP.TRKS055K
//FTPCMDS DD *
LOCSIte FWFriendly
//SYSIN DD *
USERID=proxyuser@testcase.boulder.ibm.com
PASSWORD=proxypass
TARGET_SYS=proxy.server.name
TARGET_DSN=SVCD
WORK_DSN=HLQ.FTPOUT
CC_FTP=03
WORK_DSN_SIZE=500
DIRECTORY=/toibm/mvs/
PMR=99999.000.000
CIPHER_KEY=PMR99999sad
//