Please provide a batch NSIGHTRW JCL example using SMF data as input to a Statistics report
Release : 20.0
Component : CA SYSVIEW Performance Management Option for DB2 for z/OS
IDB2's NSIGHTRW Batch JCL example:
The DB2DDN DD references the input file to the batch request report, and per your request it is a SMF file. I do recommend sorting the raw SMF file prior to using it with the report writer. The DBGIN DD references the batch report (in this example, the statistic BTSTASM1 request is referenced.) The print specification at the end of the report is reflected in the Batch report as a DD statement, with the name being the same as the Batch request(BTSTASM1).
//jobcard
//IDB2RWJ EXEC PGM=NSIGHTRW,REGION=0M
//*
//STEPLIB DD DISP=SHR,DSN=your.r20.IDB2.cdbaload
//*
//SYSPARMS DD DISP=SHR,DSN=your.idb2.source(IDRWPRMS)
//*
//DB2DDN DD DISP=SHR,DSN=your.db2.smf.file
//*
//OBIDTBL DD DUMMY
//*
//DBGIN DD DSN=your.r20.cdbatreq(BTSTASM1),DISP=SHR
//*
//BTSTASM1 DD SYSOUT=*,OUTLIM=5000000
//SYSOUT DD SYSOUT=*
//DBGPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*Here is the raw SMF sort JCL (if needed)
//jobcard
//SORTSTEP EXEC PGM=SORT,REGION=0K
//SORTIN DD DISP=SHR,DSN=raw smfdata
//SORTOUT DD DSN=sorted.smfdata
// DISP=(,CATLG,DELETE),DCB=(*.SORTIN),
// SPACE=(CYL,(60,30),RLSE)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,50)
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,50)
//SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,50)
//SYSIN DD *
INCLUDE COND=((6,1,BI,EQ,X'64'), <--DB2 100 STATISTICS RECORDS
OR,(6,1,BI,EQ,X'65'), <--DB2 101 ACCOUNTING RECORDS
OR,(6,1,BI,EQ,X'66')) <--DB2 102 PERFORMANCE RECORDS
*
SORT FIELDS=(15,4,A,19,4,A,11,4,A,7,4,A,6,1,A,23,1,A),FORMAT=BI
/*
//