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.
OVRDBF FILE(INPUT) TOFILE(GERRYLIB/QCLSRC) MBR(FTPCMDS) OVRDBF FILE(OUTPUT) TOFILE(GERRYLIB/QCLSRC) MBR(FTPLOG)
FTP RMTSYS(LOOPBACK)FTP processes the input file and writes messages to the output file (FTPLOG).
DLTOVR FILE(INPUT OUTPUT)
The CL program for batch FTP will look like the following example, in Figure 1, on system SYSNAM01:
By using the code examples, you agree to the terms of the Code license and disclaimer information.
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(INPUT OUTPUT) 0008.00 ENDPGM ****************** End of data **************************************** F3=Exit F5=Refresh F9=Retrieve F10=Cursor F12=Cance F16=Repeat find F24=More keys (C) COPYRIGHT IBM CORP. 1981, 1994.