Commitment Control in RPGLE Program

120 pts.
Tags:
AS400 RPGLE
RPGLE
Hi,

Is there any way that we can handle commitment control in RPGLE program i.e. if program dumps at some point then we rollback the updates done on other files in previous steps.

Actually I am calling rpgle program from outside iSeries.

If any error occurs on external interface then I have the way to control them from there itself, but if error occurs within RPGLE program then I did not find any way to handle the commit/rollback options there.

Please suggest some suitable method for handling commitment control in RPGLE program.

If I opt for journaling then it would also be for file level and not for program level.

Thanks

Vivek Sharma



Software/Hardware used:
AS/400

Answer Wiki

Thanks. We'll let you know when a new response is added.

First to implement Commitment Control on the AS40o, you MUST journal the files.
here is a link to the IBM manual for this.

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/rzakj/rzakj.pdf

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    Commitment control looks a little different for native I/O vs SQL, which are you using? Phil
    50,860 pointsBadges:
    report
  • TomLiotta
    Like all HLLs, RPG provides a COMMIT operation for commits and ROLBK for rollback. Whether or not the commitment definition is appropriate for a particular commit or rollback is a different question. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following