CPF4326 appeared during OPEN – Commitment Control

30 pts.
Tags:
AS/400
CPF4326
My program has call a module. In the module define declare
FSSLOG IF A E K DISK USROPN EXTFILE(logfile)
F                                    COMMIT(flg)
When I call the program, hit Error message CPF4326 appeared during OPEN (C G D F).
 Commitment definition *N not valid for open of TTLOG.
SSLOG is reference file of TTLOG. flg = '1'
Anyone know why come out this error?

Answer Wiki

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

Yes, philp you are right. I found that it prompt this error because of COMMIT is on.

Is it while open file, COMMIT must be false(off)? Not really know how to use COMMIT (true and false).
Thanks for advise.

Discuss This Question: 4  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
    Either TTLOG isn't journalled or you're missing a STRCMTCTL or the STRCMTCTL and open are at different levels.
    49,550 pointsBadges:
    report
  • ToddN2000

    Maybe it's just me but I have never seen a file with IF and the A. The file is designated as input with an ADD option? Should it not be UF ?

    8,300 pointsBadges:
    report
  • Splat
    ToddN2000, I've used input/add on occasion.  If you only want to add records that don't exist it works well.
    6,815 pointsBadges:
    report
  • philpl1jb

    COMMIT(flg)

    flg must have a true or false value before file is open.  Obviously, based on the error message, it was true.

    49,550 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