Figure 5 : Maintenir les définitions de fichiers dans des transferts
d'iSeries à iSeries en restaurant vos fichiers après leur transfert
ftp> bin
(Set Transfer Type to TYPE I (Binary))
ftp> NA à˜
(Switch Name Format to à˜ on both iSeries)
ftp> syscmd crtsavf qtemp/mysavf
(Create the save file to
send to the remote system)
ftp> syscmd savobj obj(objname) lib(libname) dev(*savf) savf(qtemp/mysavf)
(Save File to an iSeries Save File in QTEMP)
ftp> quote rcmd crtsavf qtemp/mysavf
(Create the Save file in QTEMP on the remote system)
ftp> put qtemp/mysavf qtemp/mysavf
(Send Save file to remote system)
ftp> quote rcmd rstobj obj(objname) savlib(libname) dev(*savf) +
savf(qtemp/mysavf)
(Restore file from Save file)
ftp> quit
(End FTP Session)
Figure 6 : Utiliser FTP pour envoyer l’information de fichier spoule
entre deux iSeries
ftp> ascii
(Sets ASCII mode for transfer, required to send spooled file information)
ftp> NA à˜
(Switch Name Format to à˜ 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)
Figure 7 : Transférer un fichier spoule iSeries sur un PC
ftp> ascii
(Sets the transfer to ASCII mode, required to transfer spooled file information)
ftp> NA à˜
(Switch Name Format to à˜ 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)
Téléchargez cette ressource
Etude « RSE 2023 » avec Atos et EcoAct
La réglementation qui oblige désormais les entreprises à agir vertueusement envers le climat, va se renforcer pour évaluer les efforts et la communication de leurs actions et leur suivi. L’enquête d’Atos vise à déterminer la connaissance des entreprises sur les réglementations et les obligations qui leur incombent. Voici 10 questions qui vous permettront de faire un état des lieux.