> Tech > Figures 5, 6 & 7

Figures 5, 6 & 7

Tech - Par Renaud ROSSET - Publié le 24 juin 2010
email

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

Préparer l’entreprise aux technologies interconnectées

Préparer l’entreprise aux technologies interconnectées

Avec la « quatrième révolution industrielle », les environnements hyperconnectés entraînent de nouveaux risques en matière de sécurité. Découvrez, dans ce guide Kaspersky, comment faire face à cette nouvelle ère de vulnérabilité.

Tech - Par Renaud ROSSET - Publié le 24 juin 2010