Summarization utility JCL
The following figure shows an example of JCL to execute the CMRSUMDN programs and summarize report data.
//STEPLIB DD DSN=CMR.BBLINK,DISP=SHR
//*
//CMRDETL DD DSN=CMR.DETAIL.DATA,DISP=SHR
//OUTPUT DD DSN=CMR.SUMMARY.DATA,DISP=SHR
//COPYDD DD DSN=CMR.COPY.CMRDETL,DISP=SHR
//REPORT DD SYSOUT=*
//SYSIN DD *
This sample JCL contains the following JCL statements:
- EXEC specifies the name of the program that generates the summarized detail data (PGM=CMRSUMDN).
- //STEPLIB defines the program library containing the MainView for CICS load modules.
//CMRDETL defines the name of the input data set containing the detail records to be summarized. The detail records can be from a single CICS region or multiple CICS regions. For maximum performance, detail records should be sorted in date and time sequence.
If necessary, you can use a sort utility to combine multiple detail files into date and time sequence; for example, you can specify
- SORT FIELDS=(9,20,CH,A) for VSAM
- SORT FIELDS=(13,20,CH,A) for sequential (to account for the RDW)
//OUTPUT defines the name of the summary output data set. You must specify the BLKSIZE parameter when creating a new sequential output data set.
For more information, see BBSAMP member CMRDFSUM for guidelines about allocating a VSAM or sequential data set.
//COPYDD, which is optional, defines the name of the selected sequential output data set. COPY={NO | YES} for more information.
- //REPORT defines the SYSOUT data set containing the program statistics compiled by CMRSUMDN.
- //SYSIN contains the control statements you must use to specify the input records and summarization options. For more information, see Control-statement-descriptions.
Related topic