Designing a Report Program

The basic operations of a report are formatting and printing data from SMF records. The input to a report program is normally the sorted SMF data set.

SYS1.SAMPLIB has a sample PL/1 source report program, called SMFFRMT, which formats record types 23 and 90. Contained within the program are declares for record types 23, 30, 32, and 90.

Before using the SMFFRMT program, you must compile the program using the PL/I compiler. Figure 1 shows a sample JCL for running the SMFFRMT program after it is compiled and link-edited into SYS1.LINKLIB.
Figure 1. Sample JCL for Running SMFFRMT
//FORMAT    JOB  MSGLEVEL=1
//FRMT      EXEC PGRM=SMFFRMT
//SYSPRINT  DD   SYSOUT=A
//RPORT23   DD   SYSOUT=A
//RPORT90   DD   SYSOUT=A
//SMFDATA   DD   DISP=(OLD,KEEP),LABEL=(,SL),VOL=SER=xxxxxx,DSN=nnn,
//               UNIT=3480