en esta direcci�n existe un articulo que habla sobre el tema.
(Processing an IFS File When the Name Isn't Known)
http://www.thomasbishop.com/servlet/sql.tipView?key=545&category=IFS
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 07, 2005 9:28 AM
To: [email protected]
Subject: RE: obtener el nombre de un archivo en el IFS
En FTP puedes ejecutar el siguiente mandato:
cd DIRECTORIO
ls (disk
Con cd te posicionas en el dirrectiro que necesitas y con "ls (disk" te crea
un archivo que se llama LSOUTPUT en la CURLIB donde tienes un registro con
cada archivo existente en el directorio. EL nombre de archivo puedes
cambiarlo si ejecutas un OVRDBF antes de ejecutar el fuente FTP (si es en un
CL). Luego solo tienes que leer el archivo LSOUTPUT y puedes recuperar el
nombre de cada uno de los ficheros existentes en el directorio.
-----Mensaje original-----
De: gerardo.santillana [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 06 de junio de 2005 18:40
Para: [email protected]
Asunto: obtener el nombre de un archivo en el IFS
Saludos a todos
de antemano agradezo la ayuda o idea que me puedan dar, un cliente nos va
a estar enviando por FTP un archivo y lo va a copiar a un directorio del
IFS, despues un programa va a copiar este archivo a un archivo fisico,
quisiera saber si hay algun comando o API que me permita obtener el nombre
de ese archivo ya que va a estar variando y como le puedo hacer para que el
programa se ejecute automaticamente al momento de recibir el archivo
Gracias
Gerardo Santillana
****************************************************************************
************
Note: The information contained in this message may be privileged and
confidential and thus protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent responsible
for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to the
message and deleting it from your computer. Thank you.
****************************************************************************
************
__________________________________________________
Forum.HELP400 es un servicio m�s de NEWS/400.
� Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________
Para darte de baja visita la siguente URL:
http://coyote.combios.es/mailman/listinfo/forum.help400
__________________________________________________
Forum.HELP400 es un servicio m�s de NEWS/400.
� Publicaciones Help400, S.L. - Todos los derechos reservados
http://www.help400.es
_____________________________________________________
Para darte de baja visita la siguente URL:
http://coyote.combios.es/mailman/listinfo/forum.help400
