Está en la página 1de 2

http://www.mail-archive.com/forum.help400@combios.es/msg05053.

html
Mediante FTP. Te adjunto un ejemplo:
Enviar y recibir objetos va FTP.
DESDE EL AS/400 A PC.
En el AS/400.
1. En primer lugar crear o limpiar un fichero de salvar (SAVF).
 CRTSAVF (nombre-de-la-biblioteca/nombre-del-fichero).
 CLRSAVF (nombre-de-la-biblioteca/nombre-del-fichero).
2. Salvar la biblioteca o los objetos.
 SAVOBJ OBJ(xx zz) LIB(nombre-de-la-biblioteca-a-salvar)
DEV(*SAVF)
SAVF(nombre-de-la-biblioteca/nombre-del-fichero) DTACPR(*YES)
 SAVLIB LIB(nombre-de-la-biblioteca-a-salvar) DEV(*SAVF)
SAVF(nombrede-la-biblioteca/nombre-del-fichero) DTACPR(*YES)
Atencin:
Se ha de verificar el RELEASE del AS/400 desde el que
se envan los datos y del AS/400 que los recibir.
En el PC.
3. Llamar al MS/DOS.
4. Conectarse mediante FTP con el AS/400, e introducir:
 >ftp ip-del-AS400 (donde se encuentra el fichero de salvar).
Connected to ip-del-AS400.
220-QTCP at ip-del-AS400.
220 Connection will close if idle more than 5 m
 User (AS/400:(none)): nombre-del-usuario-de-AS/400.
331 Enter password.
 Password: Contrasea-del-usuario-de-AS/400.
230 logged on.
 bin
 muy importante.
200 Representation type is binary IMAGE.
 get nombre-de-la-biblioteca/nombre-del-fichero (en el AS/400)
c:
\directorio-pc\\ nombre-del-fichero (en-el-PC).
 >bye (finalizar el protocolo ftp).
 >exit (finalizar la pantalla de MS/DOS).
DESDE EL PC AL AS/400.
En el PC.
5. Llamar al MS/DOS.
6. Conectarse mediante FTP con el AS/400, e introducir:
 >ftp ip-del-AS400 (donde se copiara el fichero de salvar).
Connected to ip-del-AS400.
220-QTCP at ip-del-AS400.
220 Connection will close if idle more than 5 minutes.
 User (AS400:(none)): nombre-del-usuario-de-AS/400.
331 Enter password.
 Password: Contrasea-del-usuario-de-AS/400.
230 logged on.
 bin
 muy importante.
 200 Representation type is binary IMAGE.
 put c:\directorio-pc\\ nombre-del-fichero.extensin (en-elPC)
nombre-de-la-biblioteca/nombre-del-fichero (en el AS/400).
200 PORT subcommand request successful.

150 Sending file to member ORIGIN in file ORIGIN in library QGPL.


250 File transfer completed successfully.
ftp: 735504 bytes sent in 1.38Seconds 532.97Kbytes/sec.
 >bye (finalizar el protocolo ftp).
 >exit (finalizar la pantalla de MS/DOS).

http://itknowledgeexchange.techtarget.com/itanswers/ftp-from-iseries-to-pc/
All Windows PC's come with Microsoft's FTP client which you can run from a DOS
window or via the Start/Run button:
FTP iSeries.ip.addr.ess
When prompted, you can logon with your iSeries ID and password and then use the
GET command to retrieve the file:
C:temp>ftp apollo
Connected to apollo.
220-QTCP at APOLLO.
220 Connection will close if idle more than 5 minutes.
User (apollo:(none)): myuserid
331 Enter password.
Password:
230 MYUSERID logged on.
ftp> quote site namefmt 0
250 Now using naming format "0".
ftp> get auksys/qrpglesrc.bldr100m01 bldr100m01.txt
200 PORT subcommand request successful.
150 Retrieving member BLDR100M01 in file QRPGLESRC in library AUKSYS.
250 File transfer completed successfully.
ftp: 747 bytes received in 0.06Seconds 11.86Kbytes/sec.
ftp> quit
221 QUIT subcommand received.
Using the FTP subcommand "QUOTE SITE NAMEFMT 0" tells the FTP server to use
the hierarchical naming convention of library/file.member. NAMEFMT 1 uses a
document naming convention of /QSYS.LIB/library.LIB

También podría gustarte