JCL to produce a batch report

The following JCL produces a package view of the CICSĀ® Resource Definition Changes Report, showing changes to resource definitions caused by the specified change package (CPID) between two dates:

Figure 1. Example JCL: producing a package view of the CICS Resource Definition Changes Report
//CCVJOB   JOB your job statement information
//STEP     EXEC PGM=CCVBMAIN
//STEPLIB  DD DISP=SHR,DSN=ccvhlq.SCCVAlang
//         DD DISP=SHR,DSN=ccvhlq.SCCVAUTH
//CCVPRINT DD SYSOUT=*
//CCVREPRT DD SYSOUT=*
//CCVPARMS DD *
CONNECT IPADDRESS=ip_address,PORT=ip_port_number

REPORT      TYPE=CICSDEFCHANGES,
            VIEW=PACKAGE,
            LEVEL=ATTRIBUTE

CRITERIASET COND=(DATE>=2007/10/01),
            COND=(DATE<=2007/11/30),
            COND=(CPID EQ 00000724)
/*

The following JCL produces a resource view of the CICS Resource Definition Changes Report, showing changes between two dates to file or transaction resource definitions in groups with the prefix PAY:

Figure 2. Example JCL: producing a resource view of the CICS Resource Definition Changes Report
//CCVJOB   JOB your job statement information
//STEP     EXEC PGM=CCVBMAIN
//STEPLIB  DD DISP=SHR,DSN=ccvhlq.SCCVAlang
//         DD DISP=SHR,DSN=ccvhlq.SCCVAUTH
//CCVPRINT DD SYSOUT=*
//CCVREPRT DD SYSOUT=*
//CCVPARMS DD *
CONNECT IPADDRESS=ip_address,PORT=ip_port_number

REPORT      TYPE=CICSDEFCHANGES,
            VIEW=RESOURCE,
            LEVEL=RESOURCE,
            SORT=(CONFIGURATION,DATE,NAME,TYPE,GROUP)

CRITERIASET COND=(GROUP=PAY*),
            COND=(DATE>=2007/10/08),
            COND=(DATE<=2007/11/30),
            COND=(TYPE EQ FILE)

CRITERIASET COND=(GROUP=PAY*),
            COND=(DATE>=2007/10/08),
            COND=(DATE<=2007/11/30),
            COND=(TYPE EQ TRANSACTION)
/*

For detailed descriptions of the statements in this JCL, see JCL to invoke the batch command program.

There are two batch commands for reporting:

You can request multiple reports in a single job step. Each REPORT can optionally be followed by one or more CRITERIASET.

A job step can contain a mix of batch commands for reporting and batch commands for processing change packages. For an example of this, see JCL to invoke the batch command program.