OVERLAY (Overlay) Keyword in Printer Files --Example

Figure 358 shows how to specify the OVERLAY keyword.

Figure 358. Specifying the OVERLAY Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A*
A          R REC1                      OVERLAY(MYLIB/OVL04 1.234 14.62)
A*
A          R REC2                      OVERLAY(&LIB/&OVLS &POSD &POSA);
A            LIB           10A  P
A            OVLS           8A  P
A            POSD           5S 3P
A            POSA           5S 3P
A*
A          R REC3                      OVERLAY(MYOVL 11.219 0.2)
A                                      OVERLAY(YOUROVL 7.3 9.27)
A*
A          R REC4
A  01                                  OVERLAY(MYLOGO 0.0 3.01)
A*
   A          R REC5                      OVERLAY(&LIB2/&OVL2 &POSD2 &POSA2 +
   A                                      (*ROTATION 90))
   A            LIB2          10A  P
   A            OVL2           8A  P
   A            POSD2          5S 3P
   A            POSA2          5S 3P
   A*
   A
 
Note:
The UOM parameter on the CRTPRTF command determines the units of measure for the parameter values.

REC1 prints overlay OVL04 found in library MYLIB. The overlay prints 1.234 units down and 14.62 units across from the margins specified on the FRONTMGN or BACKMGN parameter on the CRTPRTF command.

REC2 allows the application program to specify the library and overlay name by setting program variables LIB and OVLS, respectively. The overlay prints 0.15 units down and 1.92 units across from the margins specified on the FRONTMGN or BACKMGN parameter on the CRTPRTF command.

REC3 prints two overlays. MYOVL prints 11.219 units down and 0.2 units across from the margins specified on the FRONTMGN or BACKMGN parameter on the CRTPRTF command. YOUROVL prints 7.3 units down and 9.27 units across from the margins specified on the CRTPRTF command. Both overlays are located using *LIBL.

REC4 prints MYLOGO only if indicator 01 is on.

REC5 allows the application program to specify the library and overlay name by setting fields LIB2 and OVL2, respectively. The overlay position is specified by the application at run time by setting POSD2 and POSA2. The overlay rotation is set to a value of 90 degrees.