Code:
define buffer bcust for customer.
--
--
MAINBLK:
do transaction on-error, undo MAINBLK:
for each bcust exclusive-lock where bcust.id = 10 and
bcust.rcode = 5:
assign bcust.discount = 1.5
----
----.
end.
end.
Above query will find the 100k records to be updated. So currently all the records will be updated under one transaction in one go.
But i want only 1000 records to be updated in one go.
Kindy suggest me the different ways to get my program updated for my requirement.
TIA