Example 1: Simple FTP connection

The JCL example in Figure 1 invokes the AMAPDUPL program to transfer file H44IPCS.WESSAMP.TRKS055K to the testcase.boulder.ibm.com system as a set of work files stored in /toibm/mvs with the shared prefix 12345.123.123.wessamp.bigfile. Each of the three work files is 500 MB.

Figure 1. Simple FTP connection
//FTP     EXEC PGM=AMAPDUPL
//SYSUDUMP DD  SYSOUT=*
//SYSPRINT DD  SYSOUT=*
//SYSUT1   DD  DISP=SHR,DSN=H44IPCS.WESSAMP.TRKS055K
//SYSIN    DD  *
USERID=anonymous
PASSWORD=anonymous
TARGET_SYS=testcase.boulder.ibm.com
TARGET_DSN=wessamp.bigfile
WORK_DSN=wes.ftpout
CC_FTP=03
WORK_DSN_SIZE=500
DIRECTORY=/toibm/mvs/
PMR=12345.123.123
//