JCL to produce a batch report

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.

CICS Resource Definition Changes Report: package view

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)
/*

For more examples, see the JCL member CCVXAUD1 in the sample library SCCVSAMP.

CICS Resource Definition Changes Report: resource view

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 more examples, see the JCL member CCVXAUD2 in the sample library SCCVSAMP.

CICS Runtime Resource Changes Report

The following JCL produces a CICS Runtime Resource Changes Report, showing changes on a particular date to resources in CICS regions with APPLIDs beginning with CICS51, and in the group CCV510:

Figure 3. Example JCL: producing a CICS Runtime Resource 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=CICSRESCHANGES

CRITERIASET COND=(TARGET EQ CICS51*),                                                                       
            COND=(DATE   EQ 2012/08/09),                                                                    
            COND=(GROUP  EQ CCV510)
/*

For more examples, see the JCL member CCVXAUD3 in the sample library SCCVSAMP.


Information Information

Feedback


Timestamp icon Last updated: Friday, 7 February 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic///ccv-batch-jcl-report.htm