Scheduling help

Document ID : KB000074557
Last Modified Date : 17/04/2018
Show Technical Document Details
Issue:
The job is scheduled to run every 10 minutes daily. We would like it not to run on Sundays between 1am and 1:30am. How can we change the schedule of the job below to avoid Sundays between 1am and 1:30am?

insert_job: test_job    job_type: CMD 
command: test_command
machine: test_machine 
owner: test_user@test_machine
date_conditions: 1 
days_of_week: all 
start_mins: 00,10,20,30,40,50 
run_window: "00:00 - 23:55" 
max_run_alarm: 10 
alarm_if_fail: 1
Environment:
Workload Automation AE 11.3.x
Linux
Resolution:
Create two additional jobs that run only on Sundays. The first job would run just before 1am and put the 'test_job' on hold:

insert_job: test_job_on_hold    job_type: CMD 
command: sendevent -E JOB_ON_HOLD -J test_job
machine: test_machine 
owner: test_user@test_machine
date_conditions: 1 
days_of_week: su 
start_times: "00:59" 

The second job would run at 1:30am and take the 'test_job' off hold:

insert_job: test_job_off_hold    job_type: CMD 
command: sendevent -E JOB_OFF_HOLD -J test_job
machine: test_machine 
owner: test_user@test_machine
date_conditions: 1 
days_of_week: su 
start_times: "01:30"