RPG/400 Help

Rules for PAGE, PAGE1-PAGE7

Remember the following rules when using the PAGE fields:

Page Record Description

Figure 67. Page Record Description

*...1....+....2....+....3....+....4....+....5....+....6....+....7...
IFilenameSqNORiPos1NCCPos2NCCPos3NCC.PFromTo++DField+L1M1FrPlMnZr...
IINPUT   PG  50   1 CP
I                                        2   50PAGE

Resetting the PAGE Fields to Zero

Figure 68. Resetting the PAGE Fields to Zero

*...1....+....2....+....3....+....4....+....5....+....6....+....7...
OName++++DFBASbSaN01N02N03Field+YBEnd+PConstant/editword+++++++++...
O*  When indicator 15 is on, the PAGE field is set to zero and 1 is
O*  added before the field is printed.  When indicator 15 is off, 1
O*  is added to the contents of the PAGE field before it is printed.
OPRINT   H   01   L1
O                 15      PAGE  1   75


[ Top of Page | Previous Page | Next Page | Table of Contents ]