saravanakumar
Member
Hi Everybody,
I am not able to figure out the reason for the below behavior. Can someone let me know in detail;
In the above code snippet i can get the record available even after the transaction block. (Out of this transaction block i am able to update name of the customer)
This code snippet doesn't allow us to even compile.
Can someone explain me what does Transaction block do in case 1 and case 2?
Thanks in advance.
I am not able to figure out the reason for the below behavior. Can someone let me know in detail;
Case 1:
DO TRANSACTION:
FOR FIRST customer EXCLUSIVE-LOCK WHERE customer.cust-num = 7:
DISP customer.
END.
END.
DISPLAY customer.cust-num.
In the above code snippet i can get the record available even after the transaction block. (Out of this transaction block i am able to update name of the customer)
Case 2:
DO FOR customer TRANSACTION:
FOR FIRST customer EXCLUSIVE-LOCK WHERE customer.cust-num = 7:
DISP customer.
END.
END.
DISPLAY customer.cust-num.
This code snippet doesn't allow us to even compile.
Can someone explain me what does Transaction block do in case 1 and case 2?
Thanks in advance.