ETCL#RPT Cleanup for Top Secret JCL with OPTIONs and Selection Criteria
search cancel

ETCL#RPT Cleanup for Top Secret JCL with OPTIONs and Selection Criteria

book

Article ID: 24967

calendar_today

Updated On:

Products

Cleanup

Issue/Introduction

 How to run ETCL#RPT in CA Cleanup for Top Secret with both control OPTIONs and selection criteria.

Resolution

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.