FTP RMTSYS(LOOPBACK)
FTP processes the input file and writes messages to the output file (FTPLOG).
3. After the FTP application ends, delete the overrides:
DLTOVR FILE(INPUT OUTPUT)
The CL program for batch FTP will look like the following example on system
SYSNAM01:
Create the FTP Input File (FTCPDMS)
This file has to contain all the FTP client subcommands necessary to connect and
log on to the server, set up for and do the file transfers, close the server
connection, and end the client session. The example in Figure 176on page 273
shows the subcommands used for transferring files to two different remote systems.
Columns...: 1 71 Browse GERRYLIB/QCLSRC
SEU==> FTPBATCH
FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
*************** Beginning of data *************************************
0001.00 PGM
0002.00 OVRDBF FILE(INPUT)TOFILE(GERRYLIB/QCLSRC) +
0003.00 MBR(FTPCMDS)
0004.00 OVRDBF FILE(OUTPUT)TOFILE(GERRYLIB/QCLSRC) +
0005.00 MBR(FTPLOG)
0006.00 FTP RMTSYS(LOOPBACK) /* (FTP CL Program) */
0007.00 DLTOVR FILE(INPUTOUTPUT)
0008.00 ENDPGM
****************** End of data ****************************************
F3=Exit F5=Refresh F9=Retrieve F10=Cursor F12=Cancel
F16=Repeat find F24=More keys
(C) COPYRIGHT IBM CORP. 1981, 1994.
Figure 175. CLProgram FTPBATCH for Batch FTP
272 OS/400 TCP/IPConfiguration and Reference V4R4