|
For speed, you could override the database file to wait(0) and test for record lock and send a message to the user to try again later. This way, you would not have the program hang for 2 minutes (default wait time) trying to get the lock. I have a program that actually will tell the user who is locking up the record so they can call or go to the other user's screen (the one on the 4 hour lunch/meeting) and free up the record. Joe Giusto II Patuxent Publishing Company 10750 Little Patuxent Parkway Columbia, MD 21044 mailto:JGiusto@patuxent.com <mailto:jgiusto@patuxent.com> http://www.lifegoeson.com <http://lifegoeson.com> -----Original Message----- From: James W. Kilgore [SMTP:qappdsn@attglobal.net] Sent: Thursday, July 13, 2000 10:52 AM To: RPG400-L@midrange.com Subject: Re: Multi user programming? Raja, Only one person can lock a record and all others must wait. The best thing to do would be to test for a lock and send a message to the second user. Raja Rajendren wrote: > Suppose I'm running a program which is used to edit a record. Now let us say > I'm in edit mode, editing a record. And when I try to run the same program in > one more terminal and try to edit the same record, which is already used by > one more user, the system shows blank screen with "X" at the bottom. How to > rectify this problem. How do the network programming works. How to lock and > unlock the records. > > Can u help me in this regards, > > Rajendren K. G. > TMSI. INDIA. > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.