The header page and trailer page user-exit programs

Because the InfoPrint Manager start page and trailer page user-exit programs require the same inputs and produce the same outputs, the program descriptions are similar.

The source code (in the C programming language) for the sample header page user-exit programs and trailer page user-exit programs listed in Sample PSF DSS user-exit programs are located in the install_path\exits\psf directory. These sample programs generate an AFP data stream page.

The data structures for the header and trailer page user-exit programs are included with the source code in the install_path\exits\psf\ainuexit.h file. The code for these structures is shown in User-exit program structures.

The declaration of these exits is:


The HEADER_EXITDATA and the TRAILER_EXITDATA input/output parameters contain all of the input and output data needed to communicate between InfoPrint Manager and the user-exit programs.

See Common input and output fields and the ainuexit.h file for explanations of the function and structure of the various components of this user-exit.

After you create your header page or trailer page user-exit program, you must use the AIX make command to compile the code (see Compiling and installing the user-exit program).