Ouput data user-exit program inputs and outputs
The InfoPrint output data user-exit program is used to monitor the outgoing print data stream from InfoPrint. This exit is called at the end of the job before the error messages and the trailer page. The input and output data exits are one-directional, that is, it can read the data but cannot alter it.
The source code (in the C programming language) for the sample input data user-exit
program listed in Supported types of PSF DSS user-exits is in the
install_path\exits\psf\ainuxout.c file. This sample program consists of a return code and performs no function.
The data structures for the output data user-exit program are included with the source
code in the
install_path\exits\psf\ ainuexit.h file. The code for these structures is shown in Structure of a user-exit program.
The declaration of this exit is:
void OUTDATA (OUTDATA_EXITDATA \exitdata)
The OUTDATA_EXITDATA input/output parameter contains all the input and output data needed to communicate between InfoPrint and the user-exit program.
To build the executable program, you must use the Microsoft Visual Studio 2017 Program pull-down menu.
These fields are also found in the output data user-exit program:
- 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.
- Indicates the number of bytes in the buffer.
- Points to a buffer containing the outgoing print data stream.