How to identify the lock acquired by another user on a record in progress openedge
问题 User A has read first record from a customer table. User B wishes to know the lock which is held by A on the record. How will B identify the lock held by User A programmatically. 回答1: You can use LOCKED function: Returns a TRUE value if a record is not available to a prior FIND . . . NO-WAIT statement because another user has locked a record. Example of the documentation: REPEAT: PROMPT-FOR customer.cust-num. FIND customer USING customer.cust-num NO-ERROR NO-WAIT. IF NOT AVAILABLE customer