Please enable JavaScript to view this site.
Cobwebb supply a suite of programs to allow you to FTP file output from Cobwebb Design. At present this is just in the form of the program FTPSEND which is used by the supplied Cobwebb FTP programs outlined below.
Note: We supply a sample File Exit program called ARCHIVEFTP in file QUSRTOOLLE in library CPPD.
From version 6.2.57 - COBFILEFTP File Exit Program which will allows you to FTP your File output.
From version 6.2.64 - FMFTP Cobwebb Folder Monitor program which sends the file via FTP based on the supplied parameters. See Cobwebb Folder Monitor Types for details.
FTPSEND
This program uses the FTP instructions detailed in the FTP Commands where the UserName & Password are replaced by those supplied and the PUT by the supplied Output path. If you have any problems then please see FTP Troubleshooting for details.
If you wish to write you own File Exit program then this program is the program that you need to call from your API or Print Exit program passing in the following parameters:-
Field Name |
Description |
Length |
Type |
Comment |
IPADR |
IP address or Host Name of remote server |
132 |
A |
Required |
USRNAM |
User name for logon onto remote server |
132 |
A |
Required |
USRPWD |
Password for user name |
132 |
A |
Required |
INPATH |
Input path including file name |
256 |
A |
Required |
OUTPTH |
Output path including file name for remote server |
256 |
A |
|
ERRRSN |
Error reason |
132 |
A |
Returned |
ERRVAL |
Error code returned |
3 |
A |
Returned |
User Name and Password
You may either have a valid user name and password which are case sensitive or if the remote FTP server allows you may use the user name ANONYMOUS and a valid email address as the password.
Input/Output path
For a Physical file on the Server
If you wish to send a physical file / member then the format of the path should be as follows:
/QSYS.LIB/XXXXXXXX.LIB/YYYYYYYY.FILE/ZZZZZZZZ.MBR
where
XXXXXXXX is the library name where the file resides
YYYYYYYY is the file name
ZZZZZZZZ is the member name (if required)
For a Save file on the Server
If you wish to send a save file then the format of the path should be as follows:
/QSYS.LIB/XXXXXXXX.LIB/YYYYYYYY.SAVF
where
XXXXXXXX is the library name where the file resides
YYYYYYYY is the save file name
For Document in a Folder on the Server
If you wish to send a Document from a folder in QDLS then the format of the path should be as follows:
/QDLS/XXXXXXXX/YYYYYYYY
where
XXXXXXXX is the folder name (if you have subfolders then enter each subfolder prefixed by a “/”)
YYYYYYYY is the document name
For a file in the Server route directory
If you wish to send a file in the Server route directory then the format of the path should be as follows:
/XXXXXXXX/YYYYYYYY
where
XXXXXXXX is the directory (if you have subdirectories then enter each subdirectory prefixed by a “/”)
YYYYYYYY is the file name
For a file in the QOpenSys File system
If you wish to send a file to the QOpenSys file system for the UNIX world then the format of the path should be as follows:
/QOpenSys/XXXXXXXX/YYYYYYYY
where
XXXXXXXX is the directory
YYYYYYYY is the file name