Summarization utility JCL


The following figure shows an example of JCL to execute the CMRSUMDN programs and summarize report data.

//S1 EXEC PGM=CMRSUMDN
//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.

    Note

    When you run multiple executions of the CMRSUMDN program against the same CICS region, workload, and time frame using a VSAM data set:

    • Workloads with the same name as existing records are combined with the records.
    • New workloads are inserted.
    • A maximum of 999 workloads are supported.
  • //COPYDD, which is optional, defines the name of the selected sequential output data set. COPY={NO | YES} for more information.

    Note

    When creating a copy data set, specify RECFM=U, LRECL=0, and BLKSIZE=32768 bytes.

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



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*