|
truax @ usaor.net wrote on 09/18/97 at 12:47:00 pm AST >Hello all, >Here is the situation I am faced with (I know all ways to do all things >on the S36....probably) I want to know what feature of the AS400 will >allow me to rectify this: > >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. >User 1 - gets this screen with available sequence numbers 1 thru 20. >User 2 - gets this screen with same available sequence numbers!!! >User 1 & User 2 - commence to typing in the comments 1 thru 20. >User 1 hits enter first and adds the records 1 thru 20, Now >User 2 hits enter and they update and write over User 1's previously >entered comments. > >This is very rare, but happens too regularly and I know how I can handle >it using my S36 ability. >I want to know if there is a good AS400 way to handle this. Maybe >with COMMITMENT or JOURNALLING ? -------------------------------------------------------------- I hope I can help you with this: If the account number does not exist in the file write and immediatly read for Update. If the account number exists read the record for update. The AS/400 Data Management will provide the record lock and you will be in charge in your program/application to update the record at your convenience and remove all phantom updates. Good Luck . Jorge +--- | 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 +---
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.