Previous Topic: Adjust Column HeadingsNext Topic: Create and Add Work Fields to a Report


Add SMF Fields to a Report

The ACFFLT file the CA ACF2 preprocessor generated contains all the information contained in the CA ACF2 SMF records. These files also contain all print fields that currently exist in the standard reports. In some cases, additional information in the file is meaningful. You can print file information not currently available in the standard reports. Appendix B lists the fields available in the ACFFLT file and gives a description of the field content.

In the following example, the TIME100 field (line 40 in the original sample source program) from the ACFFLT file specifies time to 1/100 of a second. The first six bytes of this field are redefined to TIMESECONDS to specify time in hours, minutes, and seconds. A heading and edit mask are also specified in the redefinition. TIMESECONDS is then included in the PRINT statement. For more information about headings, see the Reports and Utilities Guide.

We also increased the width of the report, specified by the OPTION PRINTER= statement (line 5 in the original sample program), to accommodate the larger field. Also, we padded the heading with blanks to compensate for the fact that headings on numeric fields are right justified.

      OPTION PRINTER=100
             .
     DEF TIMESECONDS = TIME100 1‑6 N 'TIME   ' PIC 'Z9.99.99'
             .
             .
      PRINT DATE
            TIMESECONDS
            LOGONID
            JOBNAME
            SUBMITTOR
            SOURCE
            PROGRAM
            REASON_NUMBER
            VTYPE
            CPU

The previous modified program produces the following report.

22 03/29/02                           LOGON AND PASSWORD VIOLATIONS

                 STARTING DATE: 03‑29‑02    ENDING DATE: 03‑29‑02
                 STARTING TIME: 10.59       ENDING TIME: 15.04 
‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
    DATE   TIME      LOGONID    JOBNAME    SUBMITTOR   SOURCE     PROGRAM    REA
                                           LID/PROC                            C
+‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
03‑29‑02  10.59.30   AUEJJV                            H06L84F 
03‑29‑02  11.09.55   TLCISO     STARMAN    STARMAN     USCHGOVB 
03‑29‑02  11.21.50   TLCISO     TLCISO     LOGON       V4L3ED 
03‑29‑02  13.24.58   SSESWB     SSESWB     LOGON       V4L3E0 
03‑29‑02  14.02.48   SVNSKS     SVNSKS     LOGON       V4L3EA 
03‑29‑02  14.20.10   TSTRJM                            H06L867 
03‑29‑02  14.43.44   CICSID9    SSELHS5    SSECICS     T86C       SSD5 
03‑29‑02  14.44.28   CICSID9    SSELHS5    SSECICS     T827       SSD5 
03‑29‑02  14.44.55   CICSID8    SSELHS5    SSECICS     T827       SSD5 
03‑29‑02  14.48.36   AUEDRL                            H06L83D  
END OF REPORT