ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Need help : FTP error checking

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help : FTP error checking

    Is it possible to monitor the FTP session errors through CL?

    /* Establish an FTP connection */

    FTP RMTSYS(*INTNETADR) INTNETADR('some-hostname')

    /* Send an email notification of FTP error */

    MONMSG MSGID(CPF9999) EXEC(GOTO CMDLBL(SNDMAIL))


    I appreciate any help.

  • #2
    Don't think this can be done via a monmsg. The way we have done this is to send the stdout to a file (OVRDBF FILE(OUTPUT) TOFILE(<lib>/<file>) MBR(<mbr>)) and then read through the file looking for the transfer success message.

    Comment


    • #3
      Scott Klement's FTPAPI utility will help

      Comment

      Working...
      X