|
Terry Glass wrote: > > Has anyone developed a way to tell if a FTP transfer from a 400 to an PC > server is successful? I have a program that will run in batch (submitted > from the job scheduler) that will automatically FTP a file to an imaging > server. I have not been able to figure out how to tell if the FTP > completed successfully. If it has, then I can clear the file for the next > transfer later in the day. If not, then I need to retry at a later time > and/or notify the operator. Idealy, this will run as a hands-off > operation, with the operator involved only when there is an error. > > Any help will be much appreciated! If you override the log output from the FTP session to a source member you should be able to scan it for the messages indicating successful transmission. ie. In CL program I presume you already have an OVRDBF INPUT to point to the member containing the FTP commands to run in batch. Use OVRDBF OUTPUT to direct the log output to a source member, and when you scan the member you should see an entry like: 57378 bytes transferred in 2.316 seconds. Transfer rate 24.770 KB/sec OR - you could just retrieve the file back from the PC into a different library, and compare the file with the original (maybe you could use CMPPFM) to see if it was sent successfully. -- ...Neil Palmer AS/400~~~~~ ...Technical Specialist ____________ ___ ~ ...NxTrend Technology - Canada |OOOOOOOOOO| ________ o|__||= ...Markham, Ontario, Canada |__________|_|______|_|______) ...Phone: (905) 731-9000 x238 oo oo oo oo OOOo=o\ ...e-mail: neil@systemetrix.ca ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.