There is an introduction to getting RMF reports docucmented here.
You can display information about your SMF environment, using
D SMF,O
This tells you if you are using SMF datasets, or log streams ( in the coupling facility) for the RMF data.
Copy the data from SMF dataset
// SET SMFPDS=SYS1.S0W1.MAN3 // SET SMFSDS=SYS1.S0W1.MAN4 //* //SMFDUMP EXEC PGM=IFASMFDP //DUMPINA DD DSN=&SMFPDS,DISP=SHR,AMP=('BUFSP=65536') //DUMPINB DD DSN=&SMFSDS,DISP=SHR,AMP=('BUFSP=65536') //* MPOUT DD DISP=(NEW,PASS),DSN=&RMF,SPACE=(CYL,(1,1)) //DUMPOUT DD DISP=SHR,DSN=IBMUSER.RMF SPACE=(CYL,(1,1)) //SYSPRINT DD SYSOUT=* //SYSIN DD * INDD(DUMPINA,OPTIONS(DUMP)) INDD(DUMPINB,OPTIONS(DUMP)) OUTDD(DUMPOUT,TYPE(70:79)) DATE(2020316,2022284) START(0930) END(1700) /*
This job copies the records from the “MAN” data sets, and writes them to the DUMPOUT.
The RMF records with types 70 to 79 are copied, within the specified dates and start and end times.
Copy the data from a log stream.
SMF can write data to log streams, for example MQ records go to the MQ stream, and the RMF records go to the RMF Stream.
//SMFDUMP EXEC PGM=IFASMFDL //DUMPOUT DD DSN=&TEMP,SPACE=(CYL,(10,10),RLSE),DISP=(NEW,PASS) //SYSPRINT DD SYSOUT=* //SYSIN DD * DATE(2018004,2018012) START(0900) END(1900) LSNAME(IFASMF.RMF,OPTIONS(ALL)) OUTDD(DUMPOUT,TYPE(70:79,116)) /*
This step writes the data to a temporary data set.
Sort the data
If you are processing the data from more than one LPAR you will need to sort the data. See here.
Format the RMF data
The RMF control statements are described here
//POST EXEC PGM=ERBRMFPP //* use the following if using a temporary data set in same job. //* MPFINPUT DD DISP=SHR,DSN=*.SMFDUMP.DUMPOUT //MFPINPUT DD DISP=SHR,DSN=IBMUSER.RMF //PPXSRPTS DD SYSOUT=*,DCB=(LRECL=200,BLKSIZE=4000) //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSIN DD * SUMMARY(INT,TOT) NODELTA SYSOUT(H) REPORTS(ALL,NOENQ,DEVICE(NOUNITR,NOCOMM)) SYSRPTS(WLMGL(RCPER)) SYSRPTS(WLMGL(SCPER)) /* /* SYSRPTS(WLMGL(RCPER)) /* SYSRPTS(WLMGL(SCPER,RCLASS,RCPER,SCLASS))
This takes the records from MFPINPUT which could be a permanent data set, or a temporary data set passed from a previous job step.
You can have the output go to the spool (by default) or to preallocated data sets. See here
One Minute MVS performance reports of interest are
REPORTS(CPU,DEV(DASD))
For WLM the reports
SYSRPTS(WLMGL(RCPER,SCPER))
2 thoughts on “One minute MVS performance – getting batch RMF reports”