PAGNBR (Page Number) Keyword in Printer Files--Examples

Specifying on One Line with No Indicators in Printer Files

The page number is always printed, and you cannot reset the page number to one, as shown in Figure 360.

Figure 360. Specifying PAGNBR on One Line with No Indicators

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00100A          R RECORD
00110A                                  1 60'PAGE:'
00120A                                    +1PAGNBR
     A
Note:
On lines 110 and 120 two constant fields are specified:
'PAGE:' and the page number itself (location specified as
+1).

Specifying on Separate Lines with Separate Indicators in Printer Files

If the field indicator (01 in the following example) is off, the field is not printed, even if the keyword indicator (02 in the following example) is set on. If the field indicator is on, the field is printed. The page count is increased when the keyword indicator is off. The page count is reset to one when the keyword indicator is on. The page number prints whether the keyword indicator is off or on.

Figure 361. Specifying PAGNBR on Separate Lines with Separate Indicators

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00100A          R RECORD
00110A  01                              1 60'PAGE'
00120A  01                                +1
00130A  02                                  PAGNBR
     A