|
At 03:19 PM 11/1/98 , Brian Stapleton wrote: >Greetings RPG'ers Acrross the land; Back atcha sir! >Can anyone give me a brief overview of commitment control? >Our files are already journaled, I just need to know how to code this >in my RPG program. Caveat: My information is meerly theoretical... I've never actually used commitment control (although I suspect getting married is the ultimate form :). The key opcodes in committment control are "COMIT" and "ROLLBACK"... when a transaction is complete (transaction = update's / writes to ALL necessary files), you execute a COMIT operation to say "These records are good... bless them". If, for some reason, your program decides the records are NOT good... you execute a ROLLBACK... this causes all updates SINCE the last COMIT to be removed as if they never were... "These records are evil, exorsize them". If your program abends for some reason, the system does an AUTOMATIC rollback (I'm unsure if you need to do a "STRCMTCTL"... check out http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AUP00/3.1.1185 for more information. david -- | Internet: david@midrange.com | WWW: http://www.midrange.com/david | | ... A man can move mountains, a world can be turned, | and the greatest of distances easily spanned, | When the strength that's invested in making a fist | is transformed into shaking a hand | | - DMRoth * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the RPG/400 Discussion Mailing List! To submit a new * * message, send your mail to "RPG400-L@midrange.com". To unsubscribe * * from this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe RPG400-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.