IBM AS/400 Frozen Dessert Maker User Manual


 
Accessing Printer Devices
Table 23. Results of the Presence or Absence of an Overflow Indicator
File
Description
Specifications
Positions 44-80
Output Specifi-
cations Posi-
tions 21-29
Action
No entry No entry First unused overflow indicator used to condi-
tion skip to next page at overflow.
No entry Entry Error at compile time; overflow indicator
dropped from output specifications. First
unused overflow indicator used to condition
skip to next page at overflow.
OFLIND (
indi-
cator
)
No entry Continuous printing; no overflow recognized.
OFLIND (
indi-
cator
)
Entry Processes normal overflow.
Example of Printing Headings on Every Page
Figure 157 shows an example of the coding necessary for printing headings on
every page: first page, every overflow page, and each new page to be started
because of a change in control fields (L2 is on). The first line allows the headings
to be printed at the top of a new page (skip to 06) only when an overflow occurs
(OA is on and L2 is not on).
The second line allows printing of headings on the new page only at the beginning
of a new control group (L2 is on). This way, duplicate headings caused by both L2
and OA being on at the same time do not occur. The second line allows headings
to be printed on the first page after the first record is read because the first record
always causes a control break (L2 turns on) if control fields are specified on the
record.
*.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... *
OFilename++DF..N01N02N03Excnam++++B++A++Sb+Sa+.............................
OPRINT H OANL2 3 6
O..............N01N02N03Field+++++++++YB.End++PConstant/editword/DTformat++
O OR L2
O 8 'DATE'
O 18 'ACCOUNT'
O 28 'N A M E'
O 46 'BALANCE'
O*
Figure 157. Printing a Heading on Every Page
Example of Printing a Field on Every Page
Figure 158 on page 320shows the necessary coding for the printing of certain
fields on every page; a skip to 06 is done either on an overflow condition or on a
change in control level (L2). The NL2 indicator prevents the line from printing and
skipping twice in the same cycle.
Chapter 17. Accessing Externally Attached Devices 319