How do I run ETCL#RPT in CA Cleanup for ACF2 with both control OPTIONs and selection criteria?

Document ID : KB000024822
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How do I run ETCL#RPT in CA Cleanup for ACF2 with both control OPTIONs and selection criteria?

To specify both selection criteria and control options in an ETCL#RPT batch job, reference selection criteria in a//INCLUDE DD statement and reference OPTIONs in a//SYSIN DD statement.

Answer:

To specify both selection criteria and control options in an ETCL#RPT batch job, reference selection criteria in a //INCLUDE DD statement and reference OPTIONs in a//SYSIN DD statement.

In the sample report jobs that are supplied in the SAMPJCL library, the following DDs can be included:
using JOB DBRPT01 as an example:

..
//ETCLRPT EXEC PGM=ETCL#RPT,REGION=4M,PARM='UNREF=90'
//DBASE DD DISP=SHR,DSN=CAI.ETCL.DB
//*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD DUMMY
//SORTWK01 DD UNIT=3390,SPACE=(CYL,15)
//SORTWK02 DD UNIT=3390,SPACE=(CYL,15)
//*
//CMDS DD DSN=ETA.CMDS,DISP=SHR
//BACKOUT DD DSN=ETA.BACKOUT,DISP=SHR
//INCLUDE DD * ASTRO2 Name any Logonid
$KEY(SYS1) Name any dataset Rule-set $KEY(BPX) TYPE(FAC) Name any resource Rule-set CLASS(DTBL) NAME(DSN7QATBL) Name any DB2 resource Rule-set
//SYSIN DD * OPTION(ALLOWSCOPE) First option
OPTION(COMMENTACCESSNONE) Second option
//

OPTION must start in column 1 and must be uppercase.
The format for the //INCLUDE DD is shown in the Implementation guide: Chapter 4.