Example 3: FTP connection using a proxy server with proxy user ID

In Figure 1example, the USERID control statement has format user@proxyuser@hostname, where hostname is the name of the TCP/IP system to transfer the files to, user is the user name on the hostname system, and proxyuser is the user name on the proxy server. The PASSWORD control statement has format proxyuser@proxypass, where proxyuser is the user name on the proxy server and proxypass is the user's password on the proxy server. TARGET_SYS is the name of the TCP/IP proxy server.

Figure 1. FTP with a proxy user ID
//FTP     EXEC PGM=AMAPDUPL
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD DISP=SHR,DSN=H44IPCS.WESSAMP.TRKS055K
//SYSIN DD * 
USERID=anonymous@proxyuser@testcase.boulder.ibm.com
PASSWORD=proxyuser@proxypass
TARGET_SYS=proxy.server.name
TARGET_DSN=wessamp.bigfile
WORK_DSN=wes.ftpout
CC_FTP=03 
WORK_DSN_SIZE=500
DIRECTORY=/toibm/mvs/
PMR=99999.000.000
//