Please enable JavaScript to view this site.

The Cobwebb Standard exit programs can be used in the main design of your PPD and are used mainly to retrieve information from a database on the IBM i for output. 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 CPPD. You can use CLLE (or CLP) as well but you must have all the correct parameters as defined below.

Note: When creating an Standard Exit Program you will need to add any required libraries to your Cobwebb Design.

Step 1 - Create your Cobwebb Standard Exit Program
Notes:
All of the other parameters may be used to pass back information to your Cobwebb Design.
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 Standard Exit Program using the Cobwebb Test Harness for a File Exit Program TSTCPRM.

Step 3 - Test your PPD interactively.

oEnable Test Mode to write parameter details to the joblog.

oUse the RUNPPD command.  

Program Parameters

Parameter

Attribute

Description

Parm1

A (132)

Parameter 1 from the PPD

Parm2

A (132)

Parameter 2

Parm3

A (132)

Parameter 3

Parm4

A (132)

Parameter 4

Parm5

A (132)

Parameter 5

Parm6

A (132)

Parameter 6

Error

Z (1,0)

Error code to return to calling program.

0 = Success

1 = Failure