Yes both TESTTC01 and TESTTC02 existed.

Yes the process seems overly complicated but these were from some notes left by my predecessor

Thanks for your advice

set status=##Class(SYS.Mirror).AddDatabase("/db/iknow")

I get a syntax error when I do:
IF $$$ISOK(status) {w "OK"} else {w "not OK"}

Although this works OK:
IF status {w "OK"} else {w "not OK"}

Any idea why this is so?

Thanks for the suggestion.

You mentioned "InterSystems internal interactive tools. So, most such tools have non-interactive endpoints".

Could you please provide an example?
Is there a listing of all such "tools"?