Please enable JavaScript to view this site.

From version 7.0.02 Cobwebb supply an SFTP Folder Monitor program FMSFTP which SFTPs the files using Cobwebb SFTP, based on the supplied parameters.

This currently uses the *STD Monitor Type as it only has three parameters e.g.

Parameter

Parameter Description

Required

PARM1

Target for the SFTP Server

Yes

PARM2

Debug 0,1,2 - default 0=No

No

PARM3

Write to AFTPLOG on IBMi ‘*YES’ or blank.

No

The FMSFTP program has an option to write a record to a Log file AFTPLOG with a Status of "S" for Success or "F" for Failed. If the Status is "F" then the Error code and Reason will also be populated. Note: There is a logical view over this file called AFTPLOGL1 which just includes failed records if you should wish to query it.

You can use the ARCFTPLOG command to archive old records from the FTP Log file. Note: This will delete old records but not free up space in the file. To do that you will either need to run the following command (with library CPPD in your library list) when the Cobwebb subsystem is not running or run the Cobwebb Housekeeping > Save & Clear the CPPD Queue option:

RGZPFM AFTPLOG

If you wanted to be notified of any SFTP failures you can configure the FMNOTIFY Folder Monitor to monitor the "failed" folder, and the FMNOTIFYP command to produce a spooled file of any failed documents, so that you can be notified if the FTP should fail.