1753466 Members
4897 Online
108794 Solutions
New Discussion юеВ

FTP error handling

 
SOLVED
Go to solution
RBrown_1
Trusted Contributor

Re: FTP error handling

Instead of using the generated ftp command file, use COPY/FTP and then you can check the status of individual operations.
Craig A
Valued Contributor

Re: FTP error handling

RBrown

Be careful with COPY/FTP.

If the link breaks mid-copy you could be left with a file fragmen on the remote server. Not helpful if there is an automated process on the remote node to process incoming files.

Craig
Peter Barkas
Regular Advisor

Re: FTP error handling

"Also, bear in mind that FTP can "hang"."

Isn't this resolved by turning on FTP keepalive?

$ def/sys/exec tcpip$ftp_keepalive 1
Craig A
Valued Contributor

Re: FTP error handling

Peter

I had inconsistent results when fiddling with that. So decided on my workaround. Necessity is the mother of invention!

Craig
jjinva
Advisor

Re: FTP error handling

Maybe an over simplification but how about using the On error command. Right before the FTP you can use:

$ on error then goto error_end:

Where Error_end is:

$ error_end:
$ !
$ mail/subj="FTP Job Failed!" NL: "SMTP%user@company.com"

Patricia Davey
New Member

Re: FTP error handling

Thanks to all of you for your suggestions. I have used a combination of Craig A's and Fekko Stubbe's responses to sort out my FTP issue and it is working very well.