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

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

book

Article ID: 23899

calendar_today

Updated On:

Products

Scheduler Job Management

Issue/Introduction

Scheduler 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.

 

 

Environment

Release: 11.0
Component: Scheduler Job Management MVS 

Resolution

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 MYJOB should be cancelled if it has not started at 17:00 and post it's successors.

------------------ CA SCHEDULER R11 SP1 (SCHD-SYSA) JOB BASE --------------
COMMAND ===>                                                               
                                                                           
Name . . . MYJOB  Number . . 01  Station . . 40  Schedule . . MYSCHED   
                                                                           
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  Scheduler command below, or enter a line command:
===>

                                                                            
Command  Job      JNO St Node     Schedule Status                           
-------- -------- --- -- -------- -------- -------------------------------- 
________ MYJOB    01 40           MYSCHED  Cancelled by ABORTIME            
 

 

 

 

Additional Information

Scheduler Bookshelves

CA Scheduler JM Online Reference Guide, Chapter 5.2.2 Job Options