Compaq COBOL AAQ2G1FTK User Manual
Page 363
Producing Printed Reports
10.9 Report Writer Examples
Example 10–8 (Cont.) Sample Program EX1008
03
COLUMN
45
PIC X VALUE "*".
03
COLUMN
55
PIC Z9
SOURCE UE-DAY.
03
COLUMN
57
PIC X
VALUE "-".
03
COLUMN
58
PIC 99
SOURCE UE-MONTH.
03
COLUMN
60
PIC X
VALUE "-".
03
COLUMN
61
PIC 9999
SOURCE UE-YEAR.
03
COLUMN
75
PIC X VALUE "*".
02
LINE 29.
03
COLUMN
45
PIC X VALUE "*".
03
COLUMN 75
PIC X VALUE "*".
02
LINE 30 COLUMN
45
PIC X(31) VALUE "*
End of Report EX1008
*".
02
LINE 31.
03
COLUMN
45
PIC X VALUE "*".
03
COLUMN 75
PIC X VALUE "*".
02
LINE 32 COLUMN
45
PIC X(31) VALUE ALL "*".
PROCEDURE DIVISION.
DECLARATIVES.
BOR SECTION.
USE BEFORE REPORTING REPORT-HEADER.
EOR SECTION.
USE BEFORE REPORTING REPORT-FOOTER.
EOR-A.
DISPLAY "*** Created EX1008.LIS ***".
DET SECTION.
USE BEFORE REPORTING DETAIL-LINE.
DET-A.
IF SORTED-NAME = NAME
MOVE SORTED-RECORD TO CUSTOMER-MASTER-RECORD
ADD INVOICE-SALES TO SAVE-INVOICE-SALES
SUPPRESS PRINTING.
IF NAME = SPACES SUPPRESS PRINTING.
END DECLARATIVES.
(continued on next page)
Producing Printed Reports 10–63