|
Gary L Peskin wrote: > Glenn Holmer wrote: > >> An RPG programmer in our shop tells me that when you update >> a record, that *record* is automatically locked. But how do I ensure >> that no one changes the CNVA2 field out from under me between the time >> I read that record and the time I update it? What the RPG programmer >> explained to me is that when you do a CHAIN, you either update the record >> or release it, but meantime it's yours. What's the equivalent in Java? >> (Sorry if this isn't clear to AS/400 programmers, I'm mainly a PC guy.) > > > I think this will answer your question: > > >http://publib.boulder.ibm.com/pubs/html/as400/v4r5/ic2924/info/java/rzahh/javadoc/com.ibm.as400.access.AS400File.html#isReadNoUpdate() Yes, thanks, that makes it clear. -- ____________________________________________________________ Glenn Holmer gholmer@weycogroup.com Programmer/Analyst phone: 414.908.1809 Weyco Group, Inc. fax: 414.908.1601 +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
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.