Buenos días
¿Alguien me puede ayudar para un envío de archivos de salvar de un iseries
a un NAS por FTP?
Hasta ahora he hecho transferencias por FTP entre dos iseries sin problemas
pero ahora necesito hacerlo así para hacer copias externas
En este ejemplo quiero enviar el archivo de salvar QGPL/SFPRUEBA
PGM de envío
PGM PARM(&FTP227)
DCL VAR(&FTP227) TYPE(*CHAR) LEN(10)
CLRPFM FILE(FTP/QCLSRC) MBR(LOGFTPPRUE)
OVRDBF FILE(INPUT) TOFILE(FTP/QCLSRC) MBR(&FTP227)
OVRDBF FILE(OUTPUT) TOFILE(FTP/QCLSRC) MBR(LOGFTPPRUE)
STRTCPFTP RMTSYS('999.999.999.999')
DLTOVR FILE(*ALL)
FIN:
ENDPGM
miembro &FTP227
usuario contraseña
namefmt 1
bin
PUT /QSYS.LIB/QGPL.LIB/SFPRUEBA.SAVF /mnt/disk2/BackupAS400/SFPRUEBA
QUIT
Este es el resultado
miembro LOGFTPPRUE
Se ha redirigido la salida a un archivo.
Lectura de entrada del archivo de la alteración temporal especificado.
Conectando con el sistema principal remoto '999.999.999.999' utilizando el
puerto 21.
220 '999.999.999.999'FTP server ready
Entre el ID de inicio de sesión (mati):
331 Password required for usuario
230 User usuario logged in
UNIX Type: L8
Entre un submandato FTP.
> namefmt 1
500 'SITE NAMEFMT' not understood
El cliente NAMEFMT es 1.
Entre un submandato FTP.
> bin
200 Type set to I
Entre un submandato FTP.
> PUT /QSYS.LIB/QGPL.LIB/SFPRUEBA.SAVF /mnt/disk2/BackupAS400/SFPRUEBA
229 Entering Extended Passive Mode (|||52461|)
550 /mnt/disk2/BackupAS400/SFPRUEBA: Operation not permitted
Entre un submandato FTP.
> QUIT
221 Goodbye.
He intentado seguir las instrucciones que he encontrado aquí
https://www.ibm.com/support/pages/using-ftp-subcommand-namefmt
no sé que estoy haciendo mal
Gracias y saludos
Mati
____________________________________________________
�nete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd )
Forum.Help400 � Publicaciones Help400, S.L.