|
Given the following ILE program calling scenario, is this an accurate
version of how commitment control will behave?
pgmA actgrp(*new)
monitor;
calls pgmB actgrp(*caller) // both running in *NEW now (along
with all other downstream calls)
on-error;
rolbk(e) or exec sql rollback (same results either way you specify
rollback)
endmon;
*NEW is the commitment control atomic boundary.
In this scenario, the pgmB makes calls to other *caller pgms with RLA files
under commitment control as well as SQL tables under commitment control.
When pgmA is called, the commitment boundary starts for *NEW.
Any sql stored procedures that are issuing inserts/updates/deletes that
contain WITH UR (meaning, use this lock level within a commitment control
boundary) are in play.
Any *caller pgms with COMMITMENT CONTROL (cobol) or COMMIT (RPG) that are
defined for a file, can issue writes/updates/deletes to be considered for
CC within this call scope of *NEW.
IF there is a critical error, the monitor in pgmA catches it and the
rollback occurs – everything is rolled back, pgm ends as well as the *NEW
actgrp commitment control boundary.
If pgmA finishes successfully, a commit does not even have to be specified,
as *NEW defines the commitment boundary.
When pgmA ends, so does the *NEW actgrp boundary (as well as the commitment
control boundary). – all i/o’s are committed.
tia
jay
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
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.