I should think that T24 keeps that information somewhere outside the
locking system. There is, or was, an F.LOCKED file for instance. It also
seems that perhaps T24 is too granular (or maybe it has to lock the whole
account). So, you will find out that a port/user has a lock taken, but the
Fund Transfer ID is a different record to the account record I presume? If
the account being locked prevents any other account processing, then maybe
that fund transfer isn't even locked?

I think that you are better asking T24 support for sure as I bet that there
are application routines that you can call to find this out.

However, a more philosophical question is "Why do you need to know this?" -
if the account is locked, then you either wait for it not to be, or you do
not. I am not sure why knowing the funds transfer that someone else is
working on benefits anyone? However, I do not know what your code is doing
or who is to use it of course, so maybe it is useful information. HOnestly
though, I would just use SHOW-ITEM-LOCKS and parse the output. I believe it
has a -m option for machine output, expressly for this purpose.

Jim



On Fri, Jul 2, 2021 at 6:29 AM JOSE L MARTINEZ-AVIAL <[email protected]>
wrote:

> Hello Jim,
>   Yep, you are correct. We are using T24 over TAFC. We have some programs
> that create Funds Transfer, but before creating them the program makes sure
> nobody is locking one particular account by doing a READU over the account.
> If the account is locked we do a sleep for a few seconds and try again,
> until we reach a limit and desist, or the account is unlocked. We are able
> to pinpoint the port and user that is locking the account, but not the
> Funds Transfer ID he/she is processing at that moment. We can check it by
> doing the show-item-locks, but we are looking for a way to do it
> programmatically so we can retrieve the FT record involved in the lock.
>
> JL
>
> El mar, 22 jun 2021 a las 5:45, Jim Idle (<[email protected]>) escribió:
>
>> It sounds very likely to me that you will get more useful answers if you
>> tell us what you are trying to achieve, rather than how to do something.
>>
>> For instance, why do you need to get the information programmatically?
>> What do you intend to do with the information? Are you trying to track down
>> some application issue?
>>
>> Perhaps there are better ways to do what you are trying to do.
>>
>> On Mon, Jun 21, 2021 at 11:42 PM JOSE L MARTINEZ-AVIAL <[email protected]>
>> wrote:
>>
>>> Hello all,
>>>   thanks for the feedback. Actually what I meant was to ask how we can
>>> programmatically get the list of items that are locked. I know we can use
>>> show-item-locks from the command line, but I want to be able to do it
>>> programmatically.
>>>
>>> Thanks
>>>
>>> JL
>>>
>>> El vie, 18 jun 2021 a las 16:41, Robert Burke (<[email protected]>)
>>> escribió:
>>>
>>>> Hi Jose,
>>>>
>>>> You can view jBASE record locks by using the list-item-locks command.
>>>> You can also view the lock table held by the jBASE distributed lock service
>>>> by using the jdls -dvL command.
>>>>
>>>> Thanks,
>>>> Robert Burke
>>>>
>>>> On Tuesday, June 15, 2021 at 10:41:12 AM UTC-7 Jose L wrote:
>>>>
>>>>> Hello,
>>>>>    Is there anyway I can get a list of tables/records locked by a port
>>>>> in Jbase?
>>>>>
>>>>> thank you
>>>>>
>>>>> JL
>>>>>
>>>> --
>>>> --
>>>> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>>>>
>>>> To post, send email to [email protected]
>>>> To unsubscribe, send email to [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/jBASE?hl=en
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "jBASE" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/jbase/28d770a6-5b09-4e19-a2f8-a907dca33a64n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/jbase/28d770a6-5b09-4e19-a2f8-a907dca33a64n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> --
>>> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>>>
>>> To post, send email to [email protected]
>>> To unsubscribe, send email to [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/jBASE?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "jBASE" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jbase/CAHB4ARvcToh8mUCRzEg1N8YW7WdP-VJ6dFK1ovwYm4stvxq6vw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jbase/CAHB4ARvcToh8mUCRzEg1N8YW7WdP-VJ6dFK1ovwYm4stvxq6vw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> --
>> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>>
>> To post, send email to [email protected]
>> To unsubscribe, send email to [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/jBASE?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "jBASE" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jbase/CAGPPfg-2aBadLA9mDsHCyWxt95M%3DNikv8XXUzp6cFKh4XeT%3DBQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jbase/CAGPPfg-2aBadLA9mDsHCyWxt95M%3DNikv8XXUzp6cFKh4XeT%3DBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> --
> IMPORTANT: T24/Globus posts are no longer accepted on this forum.
>
> To post, send email to [email protected]
> To unsubscribe, send email to [email protected]
> For more options, visit this group at
> http://groups.google.com/group/jBASE?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "jBASE" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jbase/CAHB4ARt5yu50Fq5Prm8y3mGoYJFRVsHzS0YvqeS%3D%3DotBt0abSw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jbase/CAHB4ARt5yu50Fq5Prm8y3mGoYJFRVsHzS0YvqeS%3D%3DotBt0abSw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
IMPORTANT: T24/Globus posts are no longer accepted on this forum.

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jbase/CAGPPfg9Oh15ja0iHAoAx%2B9n-hevQ%2B7wRSAjdfvGCiZs63u07pw%40mail.gmail.com.

Reply via email to