Problem in implementing commitment control

2900 pts.
Tags:
AS/400
AS/400 commitment control
RPGLE
Hi all,
I am trying to implement commitment control on a sample application. I have followed this article. When I run my application it was running fine. I added up a simple condition to commit or roll back after writing record to physical file, but when condition false and it should roll back the written record it did not. When I view journal entries it only shows Open, Record Added and Closed entries. Why it is not rolling back the records.
Thanks
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  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.
  • philpl1jb
    Is this an SQL or native file I/O?
    54,090 pointsBadges:
    report
  • philpl1jb

    If native

    1. STRCMTCTL issued before file is open

    2.  F-spec includes COMMIT keyword

    Phil

    54,090 pointsBadges:
    report
  • hunshabbir7
    Thanks philpl1jb, I missed COMMIT keyword in F-spec. It is working fine now.
    2,900 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.

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

Following

Share this item with your network: