|
I am not sure how to respond, or even if respond. But that has yet to
stop me. :)
if my process changes FieldB and during that process another process has
changed FieldA then using a record-updated counter has no relevance. My
update to FieldB is still appropriate.
I agree that these collisions are rare, but they happen and if not
handled, they are ugly. Really ugly.
On 12/18/2017 12:45 PM, Henrik Rützou wrote:
Booth
there is no need for a lot of programming her, the simple solution is to
place a "Record Update Counter" on each record.
If tw users reads the record for update the will get the same number, if
the second user updates the record first his
update is allowed and the update counter is increased by on, if the first
user then tries to update the record he is told
that others has updated the record and he has the start over again.
In practise in most cases these collision are rare and not worth to put a
lot of programming into - why should two
user update the same customer at the same time - and what is the chance
for
that to happen?
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.