|
That might work, however we would also need a procedure to set the dataarea back to a "no uncommitted changes" status after the commit. So if we forgot that.... We might be able to change the dataarea back with a user defined commitment resource, but this is overkill. Hopefully, IBM will give me the API I need in a future release (PTF??) since all the info I could possibly want is in the commitment definition already. -Walden -----Original Message----- From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On Behalf Of Jeffrey M. Silberberg Sent: Tuesday, May 05, 1998 8:25 AM To: Walden Leverich Cc: MIDRANGE-L@midrange.com Subject: RE: Checking for uncommitted changes Well, how about a Trigger program that sets a flag in a data area or a message in the Job's Message Queue, either of which can be checked for before the job ends or as needed, without major mods to the existing code stack. Jeff Silberberg On Mon, 4 May 1998, Walden Leverich wrote: > We had originally thought of that. But it is actually not a KISS solution. > Passing a flag requires that every program (programmer) pass it as a > parameter, and more importantly, remember to update the flag whenever he/she > updates the database. This seems more complex (read: error-prone) than > simple asking DB2/400 if there are any pending updates. > > -Walden > > -----Original Message----- > From: owner-midrange-l@midrange.com > [mailto:owner-midrange-l@midrange.com]On Behalf Of Vernon Hamberg > Sent: Wednesday, April 29, 1998 12:40 PM > To: MIDRANGE-L@midrange.com > Cc: walden@techsoftinc.com > Subject: RE: Checking for uncommitted changes > > > Walden > > At 04:11 PM 4/23/1998 -0400, you wrote: > >I'm afraid that this doesn't work. I've attached the program I used to test > >this below, if you see something let me know, but otherwise.... > > > >As for why we are using this: We allow the user to travel through a suite > of > >screens leaving uncommitted changes behind him (don't blame me), then when > >he exits the suite of screens we will prompt him to save (commit) or > discard > >(rollback) these changes. If he has not made any changes we don't want to > >bother asking. > > Here's maybe a bad idea: > > What about setting some flag within the apps when moving from screen to > screen? If the extent of change isn't too great, would this be the KISS > principle answer? > > HTH > > Vernon Hamberg > Systems Software Programmer > Old Republic National Title Insurance Company > 400 Second Avenue South > Minneapolis, MN 55401-2499 > (612) 371-1111 x480 > > > +--- > | 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 MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +--- > > +--- > | 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 MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- > +--- | 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 MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | 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 MIDRANGE-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.