I want to write a routine [I think this is the correct Intersystems term] call STOPALLPRODUCTIONS.
I want to be able to call the routine:
DO ^STOPALLPRODUCTIONS
Routines are described here:
https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…
The code will be something like:
zn "namespace1"
set status=##class(Ens.Director).StopProduction()
set status=##class(Ens.Director).GetProductionStatus()
WRITE "namespace1 production is ",$CASE(status,
0:"Running",1:"Stopped",2:"Suspended",
3:"Troubled")
zn "namespace2"



.png)
.jpg)


