Using a history file
When an area is analyzed, a statistics record is appended to a user-specified file. The file can be used as input to a user-supplied reporting facility.
Use the HISTORY_DDNAME keyword on the ANALYZE command to specify the ddnames of DD statements to which the records are to be written. You can generate multiple copies of a report by listing more than one ddname.
Warning
To prevent destructive concurrent access to the data set, the DD statement that is used for the output data should specify DISP=OLD as shown in the following figure.
Use the sample JCL command set to write statistics to the history file.
Using the HISTORY_DDNAME keyword
//PFP EXEC PGM=DFSRC00,REGION=0M,
// PARM=(IFP,<dbdname>,DBF#FPU0)
//STEPLIB DD DSN=BMC.PFP.LOAD,DISP=SHR
// DD DSN=IMS.RESLIB,DISP=SHR
//<ddname1> DD DSN=<your.dataset.name>,DISP=OLD
//PFPSYSIN DD *
ANALYZE DBD=<dbdname>,IAREA=<areaname>,
HISTORY_DDNAME=<ddname1>
/*
For the complete history file record layout, see the Fast Path/EP Series Reference Manual documentation .
UOW range specification
An additional record is written to the history file for each UOW range that is requested on any REPORT subcommand for the area being processed. The record contains statistics that are specific to the range of UOWs that are requested.
The following sample JCL command set will write two records to the history file. One record will contain statistics for the entire area; the other record will contain statistics only for the UOWs that are specified.
//PFP EXEC PGM=DFSRC00,REGION=0M,
// PARM=(IFP,<dbdname>,DBF#FPU0)
//STEPLIB DD DSN=BMC.PFP.LOAD,DISP=SHR
// DD DSN=IMS.RESLIB,DISP=SHR
//ddname1 DD DSN=<your.dataset.name>,DISP=OLD
//PFPSYSIN DD *
ANALYZE DBD=<dbdname>,IAREA=<areaname>,
HISTORY_DDNAME=<ddname1>
REPORT STARTUOW=5,STOPUOW=10
/*
Comments
Log in or register to comment.