|
>In other words, ENSOBJ is only needed to protect against a non ups protected power loss?? I believe it could also be used -- albeit at a very coarse, object-level of granularity -- to guarantee sequences of changes. I'll express it as if it were in CL for simplicity: CHGDTAARA CAUTION VALUE('1') /* do some important stuff that might have to be backed out */ CHGDATARA CAUTION VALUE('0') should probably be done as follows: CHGDTAARA CAUTION VALUE('1') ENSOBJ CAUTION TYPE(*DTAARA) /* do some important stuff that might have to be backed out, but know that the data area is '1' if you got here, even if there's a crash */ CHGDATARA CAUTION VALUE('0') /* from here forward, you know you'v gotten out of the "might have to back out" section */ ENSOBJ CAUTION TYPE(*DTAARA) Single level store persistence is not for the faint of heart. You might also look into set access state for similar purposes. Remember that storage management reserves the right to push any change you make to a permanent object back out to the disk whenever it likes in whatever sequence it likes. Modifying persistant storage (if you want to have any sort of checkpoint/rollback/recovery) therefore takes a bit of work along the above lines. Larry W. Loen - Senior Java and iSeries Performance Analyst Dept HP4, Rochester MN +--- | This is the MI Programmers Mailing List! | To submit a new message, send your mail to MI400@midrange.com. | To subscribe to this list send email to MI400-SUB@midrange.com. | To unsubscribe from this list send email to MI400-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dr2@cssas400.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.