The separator page user-exit program

The InfoPrint Manager separator page user-exit program is called before copies of a job (including the very first copy) print.

The source code (in the C programming language) for the sample separator page user-exit programs listed on page What sample user-exit programs are available? are located in the /usr/lpp/psf/exits directory. These sample programs generate an AFP data stream page.

The data structures for the separator page user-exit program are included with the source code in the /usr/lpp/psf/exits/ainuexit.h file. The code for these structures is shown in User-exit program structures.

The declaration of this exit is:

void SEPARATOR (SEPARATOR_EXITDATA *exitdata)

The SEPARATOR_EXITDATA input/output parameter contains all the input and output data needed to communicate between InfoPrint Manager and the user-exit program.

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.

This field is also found in the separator page user-exit program and provides output information:

Copy
Indicates which copy is associated with this call to the exit. Initially set to 1, it increments by one each time the exit is called. The sample separator page user-exit program generates one separator page for the first copy and all subsequent copies of the job.

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