Yes, but if I try to open the table exclusive using an error handler that sets some flag and it is either not opened or in the case of use table in 0 exclusive again (where it may actually open but in shared mode), this will tell me that I cannot open the table exclusively. I don't really care if someone else has the table exclusively,shared or otherwise, or if it is being used in another data session, this should tell me that I cannot open it exclusively.
>>Nadya,
>>
>>You can use
>>
>>
?used("tablealias") and isexclusive("tablealias")
>>
>>to check for exclusive use.
>>
>
>Unfortunately, this doesn't work. The used and isexclusive functions check the current DS only. If the table opened in other DS or on another computer, we would not know. So, trapping for error is the only way to find out...