The Production Phase

With the new print application designed, it is ready to be placed into production. You define the desired production characteristics to APU. These characteristics include how to identify the target spooled file, which print definition to use, what user-specific programs should be called during processing, and the disposition of both the input and output spooled files. With this information in place, you start the APU Monitor.

The APU Monitor automatically monitors iSeries output queues, looking for the specified spooled file. When that target file is identified, it is retrieved and passed to the APU print engine. The APU print engine uses the formatting instructions contained in the APU print definition to create a new AFP output file and place it in an output queue.

At this point, standard iSeries print management takes over. When the new file is to be printed, PSF/400 manages the printing process (including the retrieval and management document resources such as overlays, images, and fonts) to an IPDS printer. Alternatively, the new print file can be routed through Host Print Transform to an HP-PCL printer.

APU formatting instructions

APU enables you to build a print definition, which is a set of instructions for formatting the data that is contained in a spooled print file. A print definition can contain one or more page formats, enabling you to change formatting instructions for different pages in the spooled file. Within the page format, you can define one or more copies of each input page. Figure 2 shows the relationship among these APU concepts.

Figure 2. APU Data Structure

You can specify a single page format in a print definition, if all of the pages in your spooled file are formatted in the same way. An application that might require only one page format is a one-page form such as an invoice, where all of the fields on the form are predefined, and a second page is never required.

Even though you define only one page format in the print definition, you can still use the APU multiple copy function to produce different copies of the same page,

6APU User's Guide

Page 18
Image 18
IBM S544-5351-03 manual APU formatting instructions, Production Phase