autocal_asc command not displaying start times

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

 

Issue:

When running the Workload Automation AE autocal_asc command to list the dates and start times it is not displaying the correct values for the start times for the jobs.  Example:

autocal_asc -s PC01 -E TEST_CAL

calendar: PC01

06/20/2016 00:00

06/21/2016 00:00

But the job that uses the calendar actually starts at 18:00

 

Environment:  

Workload Automation AE 11.3.x

 

Resolution

The autocal_asc command does allow a user to create a standard calendar which includes start times along with the date.  If a time is not specified the time is defaulted to 00:00.  If a job is defined to use the calendar and it does not specify its own start_times then the calendars start time is used.  But most clients do specify "start_times" at the job level so they can keep the calendar generic and use it for many jobs which run on the same day but not at the same time.  The job's individual "start_times" would override the calendars default 00:00 time.

Example:

[autosys]$ autocal_asc -s ex123 -E 123.out

[autosys]$ autocal_asc -s ex234 -E 234.out

[autosys]$ more 123.out

calendar: ex123

07/01/2016 00:00

[autosys]$ more 234.out

calendar: ex234

07/01/2016 07:00

 

/* ----------------- t-1 ----------------- */

insert_job: t-1   job_type: BOX

owner: autosys

date_conditions: 1

run_calendar: ex123

 

/* ----------------- t-2 ----------------- */

insert_job: t-2   job_type: BOX

owner: autosys

date_conditions: 1

run_calendar: ex123

start_times: "08:30"

 

/* ----------------- t-3 ----------------- */

insert_job: t-3   job_type: BOX

owner: autosys

date_conditions: 1

run_calendar: ex234

 

/* ----------------- t-4 ----------------- */

insert_job: t-4   job_type: BOX

owner: autosys

date_conditions: 1

run_calendar: ex234

start_times: "08:30"

 

[autosys]$ job_depends -t -J t-* -F "06/30/2016 00:59" -T "07/01/2016 23:59"

 

                            Job Forecast Report

                     From: 06/30/2016 00:59:00  To: 07/01/2016 23:59:00

 

Job Name                            Next Start            Atomic Start Conditions

______________________________      _______________       _______________________

 

t-1                                 07/01/2016 00:00:00   -------

t-2                                 07/01/2016 08:30:00   -------

t-3                                 07/01/2016 07:00:00   -------

t-4                                 07/01/2016 08:30:00   -------