With CA Scheduler Job Management, how to trigger an email if a job has exceeded the Maximum Execution Time.

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

Summary:

CA Scheduler JM users can request to send an email when a job runs longer than its predefined "Maximum Execution" time. This Knowledge Document demonstrates how to define the job and the email.

 

Instructions:

  1. Define the Maximum Execution time in the Job Base record.
    ------------------ CA SCHEDULER R11 SP1 (SCD1-XE88) JOB BASE ------------------    COMMAND ===>     Name . . . AD01      Number . . 01  Station . . 40  Schedule . . KPS08     Selection:     Backlog . . . .                   Skip . . . . 000     Times:     Early Start . . . . . 000000        Delay Time . . . 000000     Must Start  . . . . . 000000        Abort Time . . . 000000   Post . . NO     Must End  . . . . . . 000000     Maximum Execution . . 000015     Average Time  . . . . 000000     Miscellaneous:     Internal Priority  . . . . 00     Min history executions . . 0000     Min history retention  . . 0000 (days)  Enter END to Exit, or DOWN for Next Screen. 
  2. Define the Email:
    -------------- CA SCHEDULER R11 SP1 (SCD1-XE88) EMAIL DEFINITION --------------    COMMAND ===>     Definition Name . . ACCJOBS    Email Group . . . . ACCTGROUP    Email Reply Address:           (on next line)     . .    Masks:     Job . . . . . . . AD01       (blank to match schedules instead of jobs)     JNO . . . . . . . *     Station . . . . . *     Schedule  . . . . KPS08    Events:                     Templates:     Start . . . . . . NO   . . .     End . . . . . . . NO   . . .     Fail  . . . . . . NO   . . .     Abend . . . . . . NO   . . .     Interrupt . . . . NO   . . .     Late  . . . . . . YES  . . .     Submit Fail . . . NO   . . .     Enter END to exit. 
  3. Add an Email address to the Email group:
    ---------------- CA SCHEDULER R11 SP1 (SCD1-XE88) EMAIL GROUP  Row 1 to 2 of 2    COMMAND ===>                                                  SCROLL ===> PAGE      Email Group . . . ACCTGROUP        Address       ----------------------------------------------------------------------    _  user1@ca.com    _  user2@ca.com    ******************************* Bottom of data ********************************  
  4. REFRESH the Email Definitions and the Email Groups.

    If the job runs longer than 15 minutes, an email will be sent to the email addresses that are defined to email group ACCTGROUP. The email looks as follows:

    This is an automatically generated email from CA Scheduler informing you that job AD01-01 40 KPS08 was marked late at 14:56:05 on Wed, 18 Nov 2016.

    Status:Started J0006143
    Date:Wed, 18 Nov 2016
    Time:14:56:05
    Job Name:AD01
    Job Number:01
    Station:40
    Owning Node: 
    Schedule:KPS08
    Email Group:ACCTGROUP

    Please do not reply to this email.

    CA Scheduler product information:

    Release:110
    Level:SP1
    Subsystem:SCD1
    Node: 
    Sysid:XE88

    As always, please contact CA Technologies support for CA Scheduler Job Management if you have further questions.