There are many reasons for customizing a report title. You may require a standard title format, management may require more descriptive headers, or end users may need different content. Use the CA Earl REPORT statement to specify report titles and footings. In the original sample source program, lines 176 and 177 contain report title information. The following example shows how to change and add lines to modify a title. We changed the original title, INVALID PASSWORD REPORT, to a more descriptive title, LOGON AND PASSWORD VIOLATIONS.
A { REPORT 'LOGON AND PASSWORD VIOLATIONS'
{ TITLE ' '
B { TITLE @18 'STARTING DATE:' 1 DATE @45 'ENDING DATE:' 1 &DATE.
{ TITLE @18 'STARTING TIME:' 1 TIME @45 'ENDING TIME:' 1 &TIME.
C { FOOT 'SECURITY REPORTING SYSTEM'
The first title line printed is the first parameter on the REPORT statement. All subsequent title and footing programs begins with the TITLE or FOOT parameter of the REPORT statement.
The second title line is left blank, while the third and fourth have the time and date range for the report. We used the TIME and DATE values from the first record selected for reporting as the starting date and time. You can use &TIME. and &DATE. (final presort General Storage Area values) for the ending date and time, representing the time and date of the last record read.
Note: This technique relies on the fact that the presorted SMF records are in chronological order. This may not, however, be the case with multiple SMF inputs.
The last source program modification displays a footing, SECURITY REPORTING SYSTEM, at the bottom of each report page.
The alterations on the previous page produce the following title and footing output:
03/29/02 LOGON AND PASSWORD VIOLATIONS PAGE 1 1
STARTING DATE: 03‑29‑02 ENDING DATE: 03‑29‑02
STARTING TIME: 10.59 ENDING TIME: 15.04
.
.
.
SECURITY REPORTING SYSTEM
|
Copyright © 2007 CA Technologies.
All rights reserved.
|
|