Compaq COBOL AAQ2G1FTK User Manual page 8

Compaq computer accessories user manual
Table of Contents

Advertisement

9.1
Sorting Data with the SORT Statement . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1.1
File Organization Considerations for Sorting . . . . . . . . . . . . . . . . . . . .
9.1.2
DESCENDING KEY Phrases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1.3
9.1.4
PROCEDURE and OUTPUT PROCEDURE Phrases . . . . . . . . . . . . . .
9.1.5
DUPLICATES IN ORDER Phrase . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1.6
SEQUENCE IS Alphabet-Name Phrase . . . . . . . . . . . . . . . . . . . . . . . .
9.1.7
Multiple Sorting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1.8
Sorting Variable-Length Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1.9
Preventing I/O Aborts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1.10
Sorting Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Sorting at the Operating System Level . . . . . . . . . . . . . . . . . . . . . . . .
9.1.11
9.2
Merging Data with the MERGE Statement . . . . . . . . . . . . . . . . . . . . . . . .
9.3
Designing a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.1
10.2
Components of a Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.3
Accumulating and Reporting Totals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.4
The Logical Page and the Physical Page . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5
Programming a Conventional File Report . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.1
Controlling the Spacing in a Conventional Report . . . . . . . . . . . . . . . .
10.5.2
10.5.3
10.5.3.1
Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.3.2
Using a Line Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Printing the Conventional Report . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.4
A Conventional File Report Example . . . . . . . . . . . . . . . . . . . . . . . . . .
10.5.5
10.6
Programming a Linage-File Compaq COBOL Report . . . . . . . . . . . . . . . . .
10.6.1
10.6.2
Controlling the Spacing in a Linage-File Report . . . . . . . . . . . . . . . . .
10.6.3
Using the LINAGE-COUNTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.6.4
10.6.5
10.6.6
Printing a Linage-File Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.6.7
A Linage-File Report Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.7
Modes for Printing Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.7.1
Directly Allocating a Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Spooling to a Mass Storage Device . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.7.2
Programming a Report Writer Report . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.8
10.8.1
Using the REPORT Clause in the File Section . . . . . . . . . . . . . . . . . .
10.8.2
Defining the Report Section and the Report File . . . . . . . . . . . . . . . . .
10.8.3
10.8.4
Vertical Spacing for the Logical Page . . . . . . . . . . . . . . . . . . . . . . . . . .
10.8.5
10.8.6
Horizontal Spacing for the Logical Page . . . . . . . . . . . . . . . . . . . . . . .
10.8.7
Assigning a Value in a Print Line . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
9-1
9-2
9-3
9-3
9-3
9-6
9-7
9-7
9-8
9-9
9-9
9-9
9-10
9-10
10-1
10-1
10-4
10-5
10-6
10-6
10-7
10-7
10-7
10-8
10-9
10-9
10-12
10-13
10-14
10-14
10-14
10-15
10-19
10-20
10-23
10-23
10-24
10-24
10-25
10-25
10-25
10-26
10-29
10-30
10-31

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Questions and answers

Table of Contents