Question
· Dec 13, 2022

Is it possible to acquire the Jobnr/Owner from a remotlock with ^$LOCK?

Hi,

in our system we usually display an information if someone locks data that another user tries to edit. Like: "Data locked by <user>/<program>"

We have a global that is set at userlogin with following information:

^BA020(0,3,$job) = "<user>;<program>"

We show that information by getting the jobnr/owner from the locktable ^$LOCK("<ref>","OWNER") and looking at ^BA020.

We recently added applicationservers to our system and the result is quite interesting. Instead of getting the jobnr from ^$LOCK when it's a remotelock I only get the name of the applicationserver e.g. APPAIXVK3. It's a documented behaviour.

The result is that we can't get the user information of ^BA020 due to the jobnr. 

Is there a way to get the jobnr from an remotelock by calling ^||"APPAIXVK3"||$LOCK or is there no way?

 

Regards

Jochen

Product version: Caché 2018.1
$ZV: Cache for UNIX (IBM AIX for System Power System-64) 2018.1.7 (Build 721_0_21622U ) Tue May 17 2022 01:23:08 EDT
Discussion (1)3
Log in or sign up to continue