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:
- REPORT specifies the type of report (REPORT TYPE=CICSDEFCHANGES or REPORT TYPE=CICSRESCHANGES) and its options, such as the view and the level of detail
- CRITERIASET specifies selection criteria for the report requested by the preceding REPORT batch command
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:
//CCVJOB JOB your job statement information
//STEP EXEC PGM=CCVBMAIN
//STEPLIB DD DISP=SHR,DSN=ccvhlq.SCCVAlang
// DD DISP=SHR,DSN=ccvhlq.
SCCVLINK
//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:
//CCVJOB JOB your job statement information
//STEP EXEC PGM=CCVBMAIN
//STEPLIB DD DISP=SHR,DSN=ccvhlq.SCCVAlang
// DD DISP=SHR,DSN=ccvhlq.
SCCVLINK
//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:
//CCVJOB JOB your job statement information
//STEP EXEC PGM=CCVBMAIN
//STEPLIB DD DISP=SHR,DSN=ccvhlq.SCCVAlang
// DD DISP=SHR,DSN=ccvhlq.
SCCVLINK
//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.