Please enable JavaScript to view this site.

All the following exit programs reside in library CPPD. You may distribute the same spool file to any or all of the various distribution types.

DSTAPID – Determine type of distribution

This Exit Program should be called in the main design of the PPD file to determine the type of output required for the selected spool file. Uses parameters 1 - 3 to determine the Output Device types that are required. Parameters 4 - 6 return information from the DSTAPI database (field names in pink).

Program Name – DSTAPID

Parameter

In

Length

Out

Length

PARM1

-


Email Output Flag [Y=Yes]

1

PARM2

-


File Output Flag [Y=Yes]

1

PARM3

-


Print Output Flag [Y=Yes]

1

PARM4

-


Document Id (DAID)

40

PARM5

-


File Temp Path (DAFILETMP)

50

PARM6

-


Email Temp Path (DAEMLETMP)

50

DSTAPIE – Distribute via Email

This Exit Program should be called by a File Output Device as the PPD has to first generate a File output to be sent as the first attachment to the Email destination along with any other information specified in the DSTAPI database.

Program Name – DSTAPIE

Parameter

Description

Length

FilePath

File Path

256

FileName

File Name

Note: This should be PARM4 from DSTAPID for uniqueness

64

FileExt

File Extension

3

PARM1

From Code Page

132

PARM2

To Code Page

132

PARM3

Email Confirmation

132

PARM 4 - 10

Not used

132

PARM 11 - 20

Not used

64

ErrorCode

Error not blank then check DSTAPI database for details

1

Note: This program calls POSTIE3 directly to send email using email parameters from the DSTAPI database.

DSTAPIF – Distribute to an IFS folder

This Exit Program should be called by a File Output Device and will create a File output and distribute it to the path specified in the DSTAPI database. Uses database field DAFILEPATH to distribute the file.

Program Name – DSTAPIF

Parameter

Description

Length

FilePath

File Path - only used if DAFILEPATH is blank

256

FileName

File Name for the output file

64

FileExt

File Extension for the output file

3

PARM 1 - 10

Not used

132

PARM 11 - 20

Not used

64

ErrorCode

Error not blank then check DSTAPI database for details

1

DSTAPIP – Distribute to a Print Output Queue

This Exit Program should be called by a Print Output Device and will create a spool file in the Output Queue specified in the DSTAPI database. Uses database fields DAPROUTQ & DAPROUTQL to distribute the print.

Program Name – DSTAPIF

For a full explanation of the Print entries please refer to the topic Print Output Details.

Parameter

Description

Length

InputString

Not used -

256

OutputQueue

Default Output Queue - will only be used if DAPROUTQ entry is blank

10

OutQLib

Default Output Queue Library - will only be used if DAPROUTQL entry is blank

10

PrintDevice

Default Printer Device - will only be used if DAPROUTQ entry is blank

10

FormsType

Forms Type - default is *STD

10

UserData

User Data

10

HoldPrint

Hold the print on the queue

4

SavePrint

Save the print after printing

4

Duplex

Use duplex - default is *NO.

7

Drawer

Drawer to use - default is 1

5

NoCopies

Number of copies - default is 1

3,0

ErrorCode

Error not blank then check DSTAPI database for details

1