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.
//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