Step 5 - Using an Overlay Overriding a Printer File Using the Printer File Example Actions: Example Actions: 56 AFP Utilities for iSeries: User’s Guide You can specify overlays in record formats of a DDS source for the printer file if the printer device type is *AFPDS. See iSeries Data Description Specifications Reference Version 2, SC41-9620 for more information. When you press the Print key, a system program prints a copy of the displayed panel by using printer file QSYSPRT. Thus, overlay STATIONE is printed on the hard copy of the display you are seeing. If you do not have a program that uses the printer file, you can try using the overlay with system-supplied programs as follows: In the following example, a program CRTPRT is used to create a spooled file. You should use the name of your own program that uses the printer file PRINTF. To create a spooled file that contains the overlay, use the printer file. Any program that uses the printer file will do. To use an overlay with a printer file, enter an OVRPRTF command to override the printer file with the overlay. See the CL Reference book for detail of the OVRPRTF command. In the following example, the printer file PRINTF is used as an example. You can use the name of your own printer file instead. Once an overlay is created, there are a variety of ways to place an overlay in AFP document applications. Overlays can be referenced in the iSeries printer file, in DDS output specifications (using the OVERLAY keyword), with the Advanced Print Utility, with page and form definitions, with AFP Toolbox APIs, and with numerous third party applications. Refer to the iSeries Guide to Advanced Function Presentation and Print Services Facility (S544-5319) for more information on application options for AFP documents. 1. Type OVRPRTF FILE(PRINTF) FRONTOVL(OVLLIB/STATIONE) on the command line. 2. Press the Enter key. 1. Type CALL CRTPRT on the command line. 2. Press the Enter key. 1. Type OVRPRTF FILE(QSYSPRT) FRONTOVL(OVLLIB/STATIONE) on the command line. 2. Press the Enter key. 3. Press the Print key.