0014 USER subcommand with user ID and password for SYSNAM02.
0015 Transfer EBCDIC data (as it is fromAS/400 to AS/400).
0016 Send AS/400 file toAS/400 SYSNAM02 with TCP/IP.
0017 Send this file from server AS/400 SYSNAM03 to remoteAS/400
SYSNAM14 through SNA network.
0018 Close control connection to AS/400 SYSNAM02.
0019 End FTP application.
Create CL Program for Submitting the FTPBATCHJob
Toschedule the file transfers and run them unattended, create a CL program that
submits the FTPBATCH job. In Figure177, the file transfers are supposed to run
the next Friday, 17:00 hour,in unattended mode.
Check the FTP Output File for Errors
While running at the scheduled time, FTP creates the data in file member FTPLOG
shown in Figure 178on page 275. The data in file member FTPLOG corresponds to
original statements found in Figure 175on page 272 and in Figure 176 on page 273.
Columns...: 1 71 Browse GERRYLIB/QCLSRC
SEU==> FTPSUBMIT
FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
*************** Beginning of data *************************************
0001.00 PGM
0002.00 SBMJOB CMD(CALL PGM(GERRYLIB/FTPBATCH)) +
0003.00 JOB(FTPFRIDAY) OUTQ(QUSRSYS/GERRYQ) +
0004.00 SCDDATE(*FRI) SCDTIME(170000) /* FTP for +
0005.00 Friday, 5:00 in the afternoon */
0006.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 177. CLProgram for Submitting Batch FTP Job.
274 OS/400 TCP/IPConfiguration and Reference V4R4