Cancelling multiple entries of a job with different job ID's in a single attempt
search cancel

Cancelling multiple entries of a job with different job ID's in a single attempt

book

Article ID: 403091

calendar_today

Updated On:

Products

CA 7 Workload Automation

Issue/Introduction

Is there any command or option in CA 7 to cancel  multiple entries of a job with different JOB ID' s in a single attempt?  We tried CANCEL,JOB=JOBID,FORCE=YES,REASON=XXXXXX but  need to repeat the command multiple times.

Resolution

Use the CA 7 Batch Terminal Interface (BTI) procedure to issue the commands in batch.  You will still need to enter the command for each JOBID,  but can submit just one job to execute all of the commands.    For more information see Use the Batch Terminal Interface .    Repeat the cancel command as often as needed to account for the multiple entries.   See sample BTI job below:
   

 //BTI      EXEC  PGM=SASSBSTR                                    
 //STEPLIB  DD DISP=SHR,DSN=cai.CAL2LOAD                      
 //UCC7CMDS DD DISP=SHR,DSN=ca7.communications.data.set.COMMDS
 //SYSPRINT DD SYSOUT=*,DCB=BLKSIZE=133                      
 //SYSUDUMP DD SYSOUT=*                                      
 //BATCHIN  DD DISP=SHR,DSN=batch.input.data.set.BATCHI#1    
 //BATCHOUT DD DISP=SHR,DSN=batch.output.data.set.BATCHO#1    
 //SYSIN    DD *                                                
 /LOGON ********                                              
 CANCEL,JOB=0001,FORCE=YES,REASON=XXXXXX                                                          
 CANCEL,JOB=0002,FORCE=YES,REASON=XXXXXX
 .
 .
 .
 CANCEL,JOB=0200,FORCE=YES,REASON=XXXXXX
 /LOGOFF                                                      
 /*               
 
The CA 7 commands will come after the SYSIN DD* statement.