Please enable JavaScript to view this site.
The Cobwebb File exit programs can be used in the File Output Device and can be used to interface with your existing Archiving system or FTPing the document to another server. Sample programs may be found in either the USRTOOL [for RPG] or USRTOOLLE [for RPGLE] source file in the CPPD library - see entries where the Description is prefixed OUTD-FIL. We have only provided RPGLE (or RPG) source. You can use CLLE (or CLP) as well but you must have all the correct parameters as defined below.
Note: When creating a File Exit Program you will need to add any required libraries (before you open the files) as the libraries added to your Cobwebb Design are not carried through to the Distribution program.
•Step 1 - Create your Cobwebb File Exit Program
Notes:
The first 3 parameters will always be the File Path, File Name and File Extension; if you want to pass back information to your Cobwebb Design then you need to return this in the Parameters 1 - 20.
Remember to set the Error parameter to either 0 (or blank) for Success or 1 for Failure this is then passed back to the Cobwebb Server software to handle accordingly.
•Step 2 - Test your Cobwebb File Exit Program using the Cobwebb Test Harness for a File Exit Program TSTFPRM.
•Step 3 - Test your PPD interactively.
oEnable Test Mode to write parameter details to the joblog.
oUse the RUNPPD command. Note: Make sure that you only have the libraries that existing in the SPLMON Job Description in your Library List (CPPD, QGPL, QTEMP by default) so if there are any missing libraries you will know and can add them to your File Exit Program.
Program Parameters
Parameter |
Attribute |
Description |
FilePath |
A (256) |
File Path |
FileName |
A (64) |
File Name |
FileExt |
A (3) |
File Extension |
Parm01 |
A (132) |
Parameter 1 from the PPD |
Parm02 |
A (132) |
Parameter 2 |
Parm03 |
A (132) |
Parameter 3 |
Parm04 |
A (132) |
Parameter 4 |
Parm05 |
A (132) |
Parameter 5 |
Parm06 |
A (132) |
Parameter 6 |
Parm07 |
A (132) |
Parameter 7 |
Parm08 |
A (132) |
Parameter 8 |
Parm09 |
A (132) |
Parameter 9 |
Parm10 |
A (132) |
Parameter 10 |
Parm11 |
A (64) |
Parameter 11 |
Parm12 |
A (64) |
Parameter 12 |
Parm13 |
A (64) |
Parameter 13 |
Parm14 |
A (64) |
Parameter 14 |
Parm15 |
A (64) |
Parameter 15 |
Parm16 |
A (64) |
Parameter 16 |
Parm17 |
A (64) |
Parameter 17 |
Parm18 |
A (64) |
Parameter 18 |
Parm19 |
A (64) |
Parameter 19 |
Parm20 |
A (64) |
Parameter 20 |
Error |
A (1) |
Error code to return to calling program. 0 = Success 1 = Failure |