PSF for z/OS: User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Printing a page overlay

PSF for z/OS: User's Guide
S550-0435-04

Printing a page overlay

A page overlay is called either by adding the Include Page Overlay (IPO) structured field in the print data or by referencing the overlay in the page definition used for line data or XML data. To print page overlays with a line data or XML data application:

  1. Create an overlay resource. You can use, for example, an AFP utility such as IBM® Overlay Generation Language (OGL). For more information, see Overlay Generation Language User’s Guide and Reference, S544-3702.
  2. Use the overlay, by either of these methods:
    • Use a page definition that names the overlay for printing. Then specify the name of the page definition in your JCL. You can create the page definition by use of an AFP utility such as IBM Page Printer Formatting Aid (PPFA). For more information, see Page Printer Formatting Aid: User’s Guide.
    • Code an IPO structured field in the print job, except in XML data.
  3. To identify the page overlay as a preprinted form overlay, create a form definition with a Resource Object Include triplet (X'6C') on the PMC structured field that is specified with a PFO object type ID. You can build the form definition with an AFP utility that supports preprinted form overlays.

Example:
This example, which is applicable to traditional line data only, shows you how to print an overlay named O1PAGE1 on page one of the output and an overlay named O1PAGE3 on page three of the output. This example includes the print records as part of the print job and uses the system utility IEBGENER to send them to the printer.
//PAGOVLY JOB ...
//STEP1     EXEC  PGM=IEBGENER
//SYSPRINT  DD  SYSOUT=*
//OUT1   OUTPUT PAGEDEF=P1USEROV
//SYSIN     DD  DUMMY
//SYSUT2    DD  SYSOUT=A,DCB=(RECFM=FBA,BLKSIZE=80),OUTPUT=*.OUT1
//SYSUT1    DD  *
    1This is print record 1 of page 1.
    !........O1PAGE1........
     This is print record 2 of page 1.
     This is print record 3 of page 1.
    1This is print record 1 of page 2.
     This is print record 2 of page 2.
     This is print record 3 of page 2.
    1This is print record 1 of page 3.
    !........O1PAGE3........
     This is print record 2 of page 3.
     This is print record 3 of page 3.
    1This is print record 1 of page 4.
     This is print record 2 of page 4.
     This is print record 3 of page 4.

The IPO structured field contains unprintable hexadecimal coding, represented by periods in the example. For information about coding the IPO structured field, see Mixed Object Document Content Architecture Reference, AFPC-0004; see also AFP structured fields included in line data.

MO:DCA data also requires an IPO structured field to call a page overlay. The coding of the IPO structured field is identical with the coding for line data. The name of the page overlay to be used on a page must be specified in the Map Page Overlay (MPO) structured field of the Active Environment Group for that page. If the MO:DCA application is created by a text-formatting product, that product might automatically create both the MPO and IPO records when the page overlay is requested. If you are writing the Active Environment Group records, see Mixed Object Document Content Architecture Reference for the content and structure of the MPO structured field.

Positioning a page overlay

If you use an IPO structured field to include an overlay, you specify in the structured field the position at which the overlay is to print. If you use the page definition OVERLAY subcommand to include an overlay, you specify the position as a parameter on that command. This position includes the offset coded within the overlay resource. For ease of positioning, page overlays are created with an internal overlay offset of 0,0.

Take care when positioning page overlays in a page that has a rotated print direction, such as DOWN (90°), BACK (180°), or UP (270°). PSF positions the overlay relative to the logical page origin, which does not change when the print direction (that is, the text orientation) is changed. In addition, PSF positions the physical, top-left corner of the overlay, which means that in a page with a DOWN print direction, the IPO position is measured from what appears to be the bottom left corner of the page to the bottom left corner of the overlay, as shown in Figure 39.

Figure 39. Positioning a page overlay
This figure shows two pages in portrait orientation with an overlay that says OVERLAY. The medium origin is the upper left corner of the physical page, and the logical page origin is the upper left corner of the logical page. The text on the first page is not rotated, and the upper left corner of the overlay is positioned at the IPO offset–the intersection of X (horizontal) and Y (vertical) from the logical page origin. The text on the second page is rotated 90 degrees, but the medium origin and logical page origin are still in the upper left corner of the page, even though the top of the logical page is the right long side. Because it is rotated, the lower left corner of the overlay is positioned at the IPO offset.

For more information about coding page overlays, see Overlay Generation Language User’s Guide and Reference, S544-3702.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014