Jennifer_Jinhong_34

Script Tip - Stopping all Queue during a Maintenance Period

Discussion created by Jennifer_Jinhong_34 on Jul 28, 2014
Latest reply on Jan 20, 2015 by Chris_Reece_2383
Sometimes there's a need to stop all processing in a Client for a Maintenance period. The Script function MODIFY_SYSTEM is one way to automate stopping the Queues in a Client.


Documentation for MODIFY_SYSTEM Script Function:





Create a Script Object that stops all the Queues:

:SET & RET# = MODIFY_SYSTEM("MODE", "QUEUE.JOBS", "STOP")
:IF& RET# = "0"
: PRINT"Processing the Queue object QUEUE.JOBS has successfully been inactivated."
:ELSE
: PRINT"QUEUE.JOBS: Error when changing the status to STOP."
:ENDIF



This will need to be done for each Client, and all QUEUES in that Client.

To start the Queues, run the same script and change STOP to GO.

Outcomes