Hi Vitaliy,
Thanks again for your ongoing help with this.
I have now accessed the Lock Table (on the current node, anyway), and identified the PID of the process that has the Lock that I am interested in.
I can see from the help how to use %SYS.ProcessQuery:VariableByPid
However, if I try -
S Vars=##class(%ResultSet).%New("%SYS.ProcessQuery:VariableByPid(6460,zPRS)")
which I know from the System Management Portal exists for that PID, and therefore would have expected to return the value of zPRS from PID 6460, I don't get what the help seems to indicate -
IHCSLIVE>W Vars.zPRS
^
<INVALID OREF>
I guess I'm still missing something fundamental?
Thanks,
Adrian
(btw, this is my first-ever foray into Caché's world of classes and objects - essentially, I am "just" an old MUMPSter)
Thanks for the pointers, and I have located those in the documentation.
However, if I follow that, I get:
HCSLIVE>S Rset=##class(%ResultSet).%New("%SYS.LockQuery:List")
IHCSLIVE>zw
Rset=<OBJECT REFERENCE>[1@%Library.ResultSet]
IHCSLIVE>zw Rset
Rset=<OBJECT REFERENCE>[1@%Library.ResultSet]
IHCSLIVE>D Rset.Execute("")
IHCSLIVE>zw
Rset=<OBJECT REFERENCE>[1@%Library.ResultSet]
IHCSLIVE>zw Rset
Rset=<OBJECT REFERENCE>[1@%Library.ResultSet]
IHCSLIVE>W $O(Rset(""))
IHCSLIVE>
i.e. there doesn't seem to be anything there I can work with.
I suspect that I lack some basic understanding of working with classes...
Thanks,
Adrian
That does indeed sound promising, but the link to the example code is broken - do you have any other sources for that, please?