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

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

Question:

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

 

Answer:

You can specify an //INCLUDE DD statement for selection criteria along with the //SYSIN DD statement to specify the desired OPTIONS.

The following example shows how both the //INCLUDE and //SYSIN DDs can be specified in the same ETCL#RPT job.
Similar modifications can be made to the sample ETCL#RPT jobs that are supplied in the SAMPJCL library (members DBRPT**).
This example made modifications to job DBRPT03.

//S1      EXEC PGM=ETCL#RPT,REGION=4M,PARM='UNREF=15'   
//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) 
//CFILE     DD DSN=CAI.CFILE,DISP=SHR       
//CMDS      DD ETA.CMDS,DISP=SHR                     
//BACKOUT   DD ETA.BACKOUT.DISP=SHR                     
//* insert selection criteria records in INCLUDE DD               
//INCLUDE DD *            
USERIDA                                        
USERIDB                                                
CLASS(CLASS1)                          
CLASS(USERID) NAME(ABC)     
/*                        
//* insert control options in SYSIN DD 
//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.