Example 5: Using a proxy server with a port specification on the TARGET_SYS parameter

The example in Figure 1 uses a proxy server with a port specification of 2121 on the TARGET_SYS parameter and inline FTPCMDS DD statement. This example is similar to the previous one, the only difference are the FTPCMDS is an in-stream data set and the port specification is included on the TARGET_SYS parameter.

Figure 1. FTP specifying port 2121 on TARGET_SYS
//FTP     EXEC PGM=AMAPDUPL
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUT1   DD DISP=SHR,DSN=H44IPCS.WESSAMP.TRKS055K
//FTPCMDS  DD *
user anonymous pw userid@company.com
//SYSIN    DD *
USERID=proxyuser@testcase.boulder.ibm.com
PASSWORD=proxypass
TARGET_SYS=proxy.server.name 2121
TARGET_DSN=SVCD 
WORK_DSN=HLQ.FTPOUT 
CC_FTP=03 
WORK_DSN_SIZE=500 
DIRECTORY=/toibm/mvs/ 
PMR=99999.000.000
CIPHER_KEY=PMR99999sad
//