Announcement Announcement Module
Collapse
No announcement yet.
FTP and error checking Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • FTP and error checking

    Here is an open source project that has a service program for doing ftp. It allows you to tell whether the transfer was successful or not. http://klement.dstorm.net/ftpapi/ Scott Mildenberger

  • #2
    FTP and error checking

    Is it possible to do error checking when transfering a file via FTP in batch mode on an AS400 ? Like a MONMSG or something else ? Any suggestions on how to do this would help. Thank you !! Jim Sovick jsovick@kiausa.com

    Comment


    • #3
      FTP and error checking

      Some FTP return codes are listed on http://www.as400pro.com/TipsFTP.htm#10 These codes and other messages are placed in FTP job log – OUTPUT, provided by FTP command for batch processing or displayed on screen in interactive mode. By checking this log for key phase like 'file transfer completed successfully' via RPG, SQL ... you may determine the result. Text depends on QS400 version and target system and could be identified by manual FTP command execution and passed to program as parameter. I wrote generic FTP program to send/get files and can provide program code. To verify successful FTP, data file is sent first, OUPUT file is checked and if transmission was successful, program sends trigger file to target system. After receiving both files, process is initiated on target system Another way to check is to GET file you just sent from target system and compare number of records sent and received. In my experience testing this program, when AS400 used different then English language (German, Chinese, etc.) OUTPUT file had mixed language messages in ‘native’ and English, but in some cases ‘Transfer successful’ or its variations with some additions were displayed in English.

      Comment

      Working...
      X