• Subject: Re: Commit or Journal?
  • From: "David Gibbs" <devdmg@xxxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 18 Sep 1997 13:39:26 CST
  • Organization: SILVON SOFTWARE, INC.

On 18 Sep 97 at 12:47, Tim Truax wrote:

> 2 users access the same account number at the exact same time in the
> same file and same interactive job and are presented with a full
> screen where 20 comment lines can be typed in. 

If the file is opened for update, only 1 of those users will actually 
get the record locked.  As soon as the record is retrieved, update 
the record with a flag to indicate that it's being maintained.  The 
other user's program should check this flag and disallow maintenance 
if it's set.

When the first user is done, re-read the record for update, clear
the flag, and update the fields.

david

--

David Gibbs
Sr. Software Engineer
Silvon Software
Westmont, IL
(630) 655-3313 x6479
http://www.silvon.com
mailto:david.gibbs@silvon.com

Opinions expressed are strictly my own and do 
not necessarily reflect those of my employer

... You'll only see your obstacles each time 
    you take your eyes off of your goal.

                   -- DMRoth
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@midrange.com".
| To unsubscribe from this list send email to MAJORDOMO@midrange.com
|    and specify 'unsubscribe MIDRANGE-L' in the body of your message.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].