IBM AS/400 Using the Fetch-Overflow, Accessing Printer Devices, Printing a Field on Every Page

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 344
Image 344

Accessing Printer Devices

*.. 1

...+...

2

...+...

3 ...

...+

...4

+

...... 5

...+

...6

...+

...7

...+

*

OFilename++DF..N01N02N03Excnam++++B++A++Sb+Sa+

 

 

 

 

 

OPRINT

D

 

OANL2

 

 

 

3

6

 

 

 

 

 

 

O

OR

 

L2

 

 

 

 

 

 

 

 

 

 

 

O

 

N01N02N03Field+++++++++YB.End++PConstant/editword/DTforma￿t++

O

 

 

 

ACCT

 

 

 

8

 

 

 

 

 

 

O*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

158.

Printing a Field on Every Page

 

 

 

 

 

 

Using the Fetch-Overflow

Routine in Program-Described

Files

 

 

 

 

 

 

 

 

 

When there is not enough space left on

a

page

to print

the

remaining

exception, and heading lines conditioned

by the overflow indicator, the

flow routine can be called. This routine

causes an overflow. To determ

fetch

the

overflow

routine,

study all

possible

overflow situations.

By

and spaces, you can calculate what happens

if

 

overflow

occurs

on

each

total, and

exception

line.

 

 

 

 

 

 

 

 

 

 

 

The fetch-overflow routine allows you to

alter

the basic

ILE RPG

overf

prevent printing over the perforation and

to let you use as much of

possible. During the regular program cycle, the compiler

checks

only onc

diately

after total

output,

to

see

if

the overflow indicator is on.

flow function is specified, the compiler

checks

overflow

on

each

line

overflow

is

specified.

 

 

 

 

 

 

 

 

 

 

 

Figure 159 on page 321 shows the normal processing of overflow printing w fetch overflow is set on and when it is set off.

320 ILE RPG for AS/400 Programmer's Guide

Page 344
Image 344
IBM AS/400 manual Using the Fetch-Overflow, Accessing Printer Devices, Printing a Field on Every Page