Dean Stith · Jul 5, 2018 go to post

The original author is storing the output of the command into a temporary global ^TMP.
$ZN is the routine name of his tool.
$J is the job number or Process ID of the job running.
The command:  kill ^TMP($ZN,$J) is cleaning up things making sure he starts with a empty global.

Dean Stith · Nov 3, 2017 go to post

I see this was written in March 2017. By chance has this ability to Freeze / Thaw Cache on Windows VM's in Azure been implemented yet?
Can a brief description of why this cannot be performed on Windows VM's in Azure be given?
Thanks for the excellent research and information, always appreciated.

Dean Stith · Jan 13, 2017 go to post

Here is what I use:

set cmd=$P($ZU(12),"\",1,$L($ZU(12),"\")-2)_"\bin\ccontrol stopstart "_$P($ZU(86),"*",2)
d $zf(-2,cmd)

Replace 'stopstart' with 'stop' , 'force' etc ...

Dean Stith · Jul 1, 2016 go to post

Nothing to do with your question, but reading through your code reminds me of my years at Sunquest. :)

Dean Stith · Jul 1, 2016 go to post

I would refrain from using $ZF(-1,cmd) because if the callout gets hung at the O/S for any reason, the job issuing the $ZF will be hung.

I’d suggest using InterProcess Communication to the O/S or the %Fileset query as shown below.