|
I'm looking for a quick (run-time not code-time) way to do this. I know there are several ways to get the information -- there always are several ways to do anything on the 400 -- but none of these perform well. Oh well, I guess it's CHKRCDLCK for now. -Walden -----Original Message----- From: owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]On Behalf Of ywexler@ibm.net Sent: Friday, April 24, 1998 1:09 AM To: MIDRANGE-L@midrange.com Subject: Re: Checking for uncommitted changes Walden Leverich wrote: > > I need a way to look for uncommitted changes in a job. > > I have looked into the Retrieve Commitment Information (QTNRCMTI) API, > but this doesn't seem to help me. All I need to know is if there are > any uncommitted changes, I don't care what files they are in or how > many there are -- of course I won't complain if I get this info. > > For now I have resorted to checking for locks held by this job and > assuming that if there are locks there are uncommitted changes and if > there are not job locks there are not uncommitted changes. However > this is somewhat fishy, I would like a better way. > > Anyone have any good ideas? (Or even any bad ideas) > > -Walden Walden, As I understand, you run jobs partly under commitment control. This implies your files are journalled. You can find all the changes in the journal receiver. Display the changes performed by the jobs you want to audit. Every change done under commitment control has a "commit cycle number" and changes done without commitment control miss this number. To look to the changes done by a specific job you use DSPJRN and specify the job ID in selection criteria of this command. You can also download theese changes to a file "output(*file)" in DSPJRN, and then analyze theese changes using a program or Query/400. Joseph Wechsler Bell'arte Systems +--- | 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-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 copyright@midrange.com.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.