[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Error handling in FTP



Sender: "Buck Calabro" <Buck.Calabro@xxxxxxxxxxxx>

>1- Get a file from a remote server
>2- FTP to the AS/400...
>3- submit a Robot job using quote...
>
>The challenge is trying to trap errors and act accordingly..
>
>E.g. if FTP fails keep the old file and do not submit Robot job..
>
>Can anyone help out?

How far have you got?  Have you downloaded and installed the FTPAPI?  Basically, the API allows you to do the individual FTP commands like GET, PUT, etc.  So you'd write an RPG program that does the individual FTP steps rather than type them in by hand or use an FTP script.
  --buck
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------