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 :
To restart :
With 2 EVNT.TIME objects and scriptYou 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
: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 :
2 - Use a second EVNT object to restart :
Like the other one it must be a single event.
:SET &RUNNR# = GET_UC_OBJECT_NR(
<Name of the JSCH>)
:SET &STOP# = TOGGLE_OBJECT_STATUS(&RUNNR#, "GO")
Use Execute once with these settings:
Please note these are just suggestions which should be tested at your end.