Appendix B. User Exits

This appendix describes the user exits that are referred to in ªDefining User Exit Before and Middleº on page 94 and ªDefining User Exit Afterº on page 96.

Processing Phases

Following is a description of the processing phases the APU print engine goes through in general and when processing the user exits:

Table 3. APU Print Engine Processing Phases

 

 

Modified Version

Pre-Modification

Step

Description

Program Name

Equivalent

 

 

 

 

1

Call the user exit program

EXTBEF

None

 

ªbeforeº

 

 

 

 

 

 

2

Set up the internal environment

INZENV

INZENV

 

using the print definition.

 

 

 

 

 

 

3

Create the internal spool

CPYSPLF

CPYSPLF

 

database using the CPYSPLF

 

 

 

command.

 

 

 

 

 

 

4

Call the ªmiddleº user exit.

EXTMID

None

 

 

 

 

5

Process the input file and create

GENAFP

GENAFP

 

an AFPDS output database.

 

 

 

 

 

 

6

Convert the database to the

PRTAFPDTA

PRTAFPDTA

 

spooled file using the

 

 

 

PRTAFPDTA command.

 

 

 

 

 

 

7

Call the ªafterº user exit

EXTAFT

None

 

program.

 

 

 

 

 

 

8

Perform post-processing action

INPACT

None

 

on the SCS spooled file.

 

 

 

 

 

 

User Exit Before

The USER EXIT BEFORE program includes the library the program is in and a 20 character user parameter to be passed to the exit program. This program (phase EXTBEF) will be executed before the print engine starts to initialize (phase INZENV, which sets up the internal environment such as variables, tables, and so on) using the print definition.

Following is the parameter structure passed by the APU print engine if a user exit is called for BEFORE processing is initialized:

© Copyright IBM Corp. 1996, 2002

103

Page 115
Image 115
IBM S544-5351-03 manual Appendix B. User Exits, Processing Phases, User Exit Before