You can create more descriptive headings, eliminate column headings, or justify left or right column headings. Use the DEFINE (or DEF for short) statement to specify default column headings for each field. If you do not specify a column heading when you define a field, the field name is used as a header.
In most cases, the column headings shipped with the facility coincide with the field headers in the standard CA ACF2 reports. However, these headings may not suit the purposes of your site. You can modify column headings in several ways. We recommend that you create a work field to report and specify the heading you want for that work field. Then include the work field in the PRINT statement. However, you can suppress headings using the EXCLUDE parameter of the REPORT statement, or you can modify the default heading in the copy member that contains the field definition to change the headings.
The source program on the facing page shows how to change the headings for the LOG field. The original report uses the default header. The default heading for the LOG field is LOG on the first heading line and VIO on the second heading line. The DEFINE statement that specifies this default is in the PRECORD copy member (see line 81 of the original sample source program).
To illustrate how to change headers, the following modified source program creates a work field LOG. This new field, VTYPE, redefines the old field with a new heading. The VTYPE field then replaces the LOG field in the PRINT statement. Insert a DEF statement like the one below into the input source program after the COPY statements.
COPY PRECORD
DEF VTYPE = LOG 1 3 X ‘VIO’ ‘TYPE’
.
.
.
PRINT DATE
TIME
LOGONID
JOBNAME
SUBMITTOR
SOURCE
PROGRAM
REASON_NUMBER
VTYPE
CPU
The previous sample source program modification produces this report heading:
DATE TIME LOGONID JOBNAME SUBMITTOR SOURCE PROGRAM REASON VIO CPU
LID/PROC CODE TYPE
|
Copyright © 2007 CA Technologies.
All rights reserved.
|
|