Midrange News for the IBM i Community


Posted by: George Fuste
IBM i developer
Jacksonville, FL
Ending Commitment control
has no ratings.
Published: 30 Aug 2012
Revised: 23 Jan 2013 - 2429 days ago
Last viewed on: 16 Sep 2019 (3719 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Ending Commitment control Published by: George Fuste on 30 Aug 2012 view comments(3)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: DaleB
Premium member *
Reading, PA
Comment on: Ending Commitment control
Posted: 7 years 17 days 17 hours ago

You are correct. ENDCMTCTL stops the commitment control environment. If nothing has changed since the last COMMIT or ROLLBACK (i.e., last boundary), there's nothing to release. If there are pending, uncommitted changes, then an ENDCMTCTL will send a message to an interactive job, or will do an implied ROLLBACK in a batch job.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Ending Commitment control
Posted: 7 years 17 days 16 hours 59 minutes ago

I should add that you should do an ENDCMTCTL. It just doesn't have anything to do with releasing locks after a COMMIT.

Posted by: GFuste
Premium member *
Jacksonville, FL
Comment on: Ending Commitment control
Posted: 7 years 13 days 18 hours 23 minutes ago

Thanks Dale!

GF