Figure 7: Moving an iSeries spooled file to a PC
ftp> ascii
(Sets the transfer to ASCII mode, required to transfer spooled file
information)
ftp> NA 0
(Switch Name Format to 0 on your iSeries)
ftp> quote rcmd crtpf file(qtemp/spoolf) rcdlen(132)
(Creates a physical file to contain the spool file data. We use the QTEMP
library so the physical file is removed when the transfer is complete)
ftp> quote rcmd cpysplf file(spoolf) tofile(qtemp/spoolf) +
@@@ job(jobnumber/user/jobname) splnbr(*last)
(Copies the spooled file information into the physical file)
ftp> get qtemp/spoolf pcfile.txt
(Send the physical file with the spool file information to the server)
ftp> quit
(End FTP session)