User GWIL on SYSNAM03 wants to do the following steps:
- Retrieve files from hosts SYSNAMRS (RS/6000®) and MVAX (VAX).
- After retrieving the file from SYSNAMRS, transfer the file to SYSNAM02 (another system) using FTP.
- From SYSNAM02, send the file to SYSNAM14 using TCP/IP.
- Example: Creating a CL program to start FTP
This is an example CL program to start File Transfer Protocol (FTP) in batch mode. The CL program contains commands to override the command input and message output, start the FTP, and delete the overrides when the FTP is closed.
- Example: Creating the FTP input file (FTCPDMS)
The FTP input file must contain all the FTP client subcommands necessary to connect and log on to the FTP server, set up and complete the file transfers, close the connection, and end the client session. This example shows the subcommands used for transferring files to two different remote systems.
- Example: CL program for submitting the FTPBATCH job
To schedule the file transfers and run them in unattended mode, create a CL program that submits the FTPBATCH job. In this example, the file transfers are to run the next Friday, 17:00 hour, in unattended mode.
- Example: Checking the FTP output file for errors
While running at the scheduled time, FTP creates data in file member FTPLOG. The data in file member FTPLOG corresponds to original statements found in both examples. Check the output (FTPLOG) for errors that might have occurred during the FTP processing.
Parent topic:
Running File Transfer Protocol in unattended mode using a batch job