Figure 6: Using FTP to send spooled file information between two iSeries

ftp> ascii
(Sets ASCII mode for transfer, required to send spooled file information)
ftp> NA 0
(Switch Name Format to 0 on your iSeries)
ftp> syscmd 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> syscmd cpysplf file(spoolf) tofile(qtemp/spoolf) +
    job(jobnumber/user/jobname) splnbr(*last)
(Copies the spool file information into the physical file)
ftp> put qtemp/spoolf pcfile.txt
(Send the physical file with the spool file information to the server)
ftp> quit
(End FTP session)