Antoine_Sauteron_1266

Stopping all jobs in the Scheduler

Discussion created by Antoine_Sauteron_1266 on Oct 16, 2017
Latest reply on Oct 20, 2017 by Antoine_Sauteron_1266
We need to stop all jobs in our scheduler from 16.30 Friday until Monday 00:05 which is the time we reload the scheduler. Can you tell me what the best method to do this is.
Simplest approach would be to stop the Schedule then restart it.

1 - Manually from the schedule monitor :


To stop :

f6d0av0r37ta.png
 
To restart :

fn947azxfc6f.png


With 2 EVNT.TIME  objects and script

You can use script functions GET_UC_OBJECT_NUMBER and TOGGLE_OBJECT_STATUS

1 - First EVNT.TIME will stop the schedule.

Configure it as a "one time" event
dmjs3uo2918k.png


!Process Tab:

 

:SET &RUNNR# = GET_UC_OBJECT_NR(<Name of the JSCH>)
:
SET &STOP# = TOGGLE_OBJECT_STATUS(&RUNNR#, "STOP")

 

Then execute it once to set the desired execution time :

63lsbeqcisnq.png

rmc73qv6tfcd.png


2 - Use a second EVNT object to restart :

Like the other one it must be a single event.

!Process Tab:
:SET &RUNNR# = GET_UC_OBJECT_NR(<Name of the JSCH>)
:SET &STOP# = TOGGLE_OBJECT_STATUS(&RUNNR#, "GO")

Use Execute once with these settings:

hc1vvafmdyum.png



Please note these are just suggestions which should be tested at your end.

Kind regards,
Antoine


Outcomes