PAGSEG (Page Segment) Keyword in Printer Files--Example

Figure 363 shows how to specify the PAGSEG keyword.

Figure 363. Specifying the PAGSEG Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A*
A          R REC1                      PAGSEG(MYLIB/PAGSEG5 3.527 4.162)
A*
A          R REC2                      PAGSEG(&LIB/&PSEG &POSD &POSA);
A            LIB           10A  P
A            PSEG           8A  P
A            POSD           5S 3P
A            POSA           5S 3P
A*
A          R REC3                      PAGSEG(MYSEG 0.0 3.759)
A                                      PAGSEG(YOURSEG 0.0 5.233)
A*
A          R REC4
A  01                                  PAGSEG(MYSEG 0.0 3.01)
A*
A
Note:
The UOM parameter on the CRTPRTF command determines the units of measure for the parameter values.

REC1 prints page segment PAGSEG5 found in library MYLIB. The page segment prints 3.527 units down and 4.162 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 page segment name by setting fields LIB and PSEG, respectively. The page segment prints 8.5 units down and 6.72 units across from the margins specified on the FRONTMGN or BACKMGN parameter on the CRTPRTF command.

REC3 prints two page segments. MYSEG prints 0 units down and 3.759 units across from the margins specified on the FRONTMGN or BACKMGN parameter on the CRTPRTF command. YOURSEG prints 0 units down and 5.233 units across from the margins specified on the CRTPRTF command. Both page segments are located using *LIBL.

REC4 prints MYSEG only if indicator 01 is on.