Message when file does not exist

5 pts.
Tags:
Error handling
I am writing a program to send a file and want to moitor when the file does not exist on the server(system i)  that is doing the ftp.  I am trying to notify someone when there is a problem.

Software/Hardware used:
system i (as/400)

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you are doing the FTP from the iSeries, you can use source members to store the input and output of the FTP.
OVRDBF FILE(INPUT) TOFILE(QTEMP/FTPCMD)
OVRDBF FILE(OUTPUT) TOFILE(QTEMP/FTPLOG)
FTP RMTSYS(&HOST)

FTPCMD and FTPLOG were created with CRTSRCPF QTEMP/FTPxxx

Once you do the FTP command, you can now go in and read the FTPLOG file to determine exactly what happended in your process.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I am writing a program... For what platform and in what language? ...to moitor when the file does not exist on the server(system i) that is doing the ftp. Is the System i acting as the client or the server? Do you you want to know if the file doesn't exist before the FTP? Or if it doesn't get created by the FTP? Do you want to know if it doesn't exist on the client, i.e., it can't be FTPed because it doesn't exist? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following