Please enable JavaScript to view this site.
From version 7.0.02 - This exit program must be called by a File Output Device and is used to SFTP the generated file to an alternate destination. This program uses the SFTPSEND program.
Parameter |
Length |
Description |
Notes |
PARM1 |
132 |
Target to the SFTP Server |
Mandatory Please see the topic on Configuring SFTP for details. |
PARM2 |
132 |
Debug (0, 1, 2) |
Optional 0= No debugging and is the default. |
PARM3 |
132 |
Write to Log file (‘*YES’ or blank) |
Optional Write to AFTPLOG on IBMi . |
PARM4 |
132 |
Fail folder If you enter a valid path here then, if the SFTP process fails, the file will be moved to this folder. If left blank then the file will not be moved. |
'/test/ftp/fail/' |
PARM5 |
132 |
Success folder If you enter a valid path here then, if the SFTP process is successful, the file will be moved to this folder. If left blank then the successfully sent file will not be moved. |
'/test/ftp/success/' |
PARM6 - 10 |
132 |
Not used |
|
PARM11 - 20 |
64 |
Not used |
You can use the ARCFTPLOG command to archive old records from the 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