Me contesto a mi mismo y por si a alguien le interesa asi fue como le hice, lo
unico que me falta es ver como ejecutar el programa automaticamente al recibir
el archivo por FTP, si alguien tiene una idea se lo agradeceria.
CRTPF FILE(LIBGSTEST/IFSLIST)
RCDLEN(50)
MBR(IFSMBR)
TEXT('IFS List of files')
STRQSH CMD('LS -L /AIRROAD > +
/QSYS.LIB/LIBGSTEST.LIB/IFSLIST.FILE/IFSMBR+
.MBR')
RCVF RCDFMT(IFSLIST)
MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(END))
CHGVAR VAR(&PPATH) VALUE('/AIRROAD/' *TCAT &IFSLIST)
CPYFRMSTMF FROMSTMF(&PPATH) +
TOMBR('/QSYS.LIB/LIBGSTEST.LIB/AIRROADTMP.F+
ILE/AIRROADTMP.MBR') MBROPT(*REPLACE) +
ENDLINFMT(*CRLF) TABEXPN(*NO)
etc....
Saludos
Gerardo Santillana
IT Department
Delphi Mechatronic Systems
Phone USA (956) 554 5832
Phone MX 01868 8128163 x.5832
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of gerardo.santillana
Sent: Monday, June 06, 2005 11:40 AM
To: [email protected]
Subject: 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
****************************************************************************************
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