How to cancel a job in CA Scheduler Job Management if the job does not run by a certain time.

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

Introduction:

CA Scheduler JM can cancel a job and post the requirements if it does not start by a particular time. This Knowledge document will illustrate how to define the job.

Instruction:

Here is a solution for a job that is scheduled and needs to be canceled if it has not started by a certain time.

Define the job with ABORT TIME in the job base record. The ABORT TIME will indicate the time when the job should be canceled if it has not yet started. If the successors needs to be posted, then POST must be YES.

Here is an example, where PAYROLL2 should be cancelled if it has not started at 17:00 and post it's successors.

------------------ CA SCHEDULER R11 SP1 (SCD1-XE88) JOB BASE --------------
COMMAND ===>                                                               
                                                                           
Name . . . PAYROLL2  Number . . 01  Station . . 40  Schedule . . PAYROLL   
                                                                           
Selection:                                                                 
  Backlog . . . .                   Skip . . . . 000                       
                                                                           
Times:                                                                     
  Early Start . . . . . 000000        Delay Time . . . 000000              
  Must Start  . . . . . 000000        Abort Time . . . 001700   Post . . YES
  Must End  . . . . . . 000000                                             
  Maximum Execution . . 000000                                             
  Average Time  . . . . 000000                                             

If the job has not started at 17:00, below is the job status display showing it has been canceled by ABORTIME.

Enter CA Scheduler command below, or enter a line command:
===>

                                                                            
Command  Job      JNO St Node     Schedule Status                           
-------- -------- --- -- -------- -------- -------------------------------- 
________ PAYROLL2  01 40          PAYROLL  Cancelled by ABORTIME            
 

 

Additional Information:

CA Scheduler JM Online Reference Guide, Chapter 5.2.2 Job Options