Producing Printed Reports
10.6 Programming a Linage-File Compaq COBOL Report
On Tru64 UNIX, the linage file contains variable length records. All advancing
information is written to the file as blank lines.
♦
The following sections discuss these topics in detail. Example 10–5 shows an
example of a linage-file program.
10.6.1 Defining the Logical Page in a Linage-File Report
Your program specifies the format of your report. Using the report layout
worksheet you created, you can write a Compaq COBOL program that defines
the logical page area and divides the page into logical page sections for a linage-
file report. Figure 10–6 shows the logical page area and the four divisions of a
linage-file report.
Figure 10–6 Logical Page Areas for a Linage-File Report
1
2
3
.
*Top Margin
*Footing Area
*Bottom Margin
ZK−6084−GE
4
5
6
7
8
9
10
11
12
.
.
.
Logical
Page
Page body line numbers
*Optional areas
Page Body
To define the number of lines on a logical page and to divide it into logical page
sections, you must include the LINAGE clause as a File Description entry in your
program. The LINAGE clause lets you specify the size of the logical page’s top
and bottom margins and the line where the footing area begins in the page body.
Producing Printed Reports 10–13