Error message CPF4131 AS/400

100 pts.
Tags:
AS/400
CPF4131
RPG
On of our users is trying to run a job but he's getting an error message:

CPF4131. Message . . . . : Error message CPF4131 appeared during OPEN (C G D F). Cause . . . . . : RPG procedure IVD403R1 in program ********/IVD403R1 received the message CPF4131 at statement *INIT while performing an explicit OPEN operation on file STRNAML4A. The actual file is STRNAML4A. Recovery . . . :


Check the job log for a complete description of message CPF4131, and contact the person responsible for program maintenance. I used WRKOBJLCK and found no locks on file STRNAML4A. Our lead RPG programmer is on vacation this week. I know there is a command to look at a files permissions, but I can't remember what it is. What is my next step? Thanks.

Software/Hardware used:
AS400, RPG

Answer Wiki

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

You can disregard this question. The problem was in the program. Another programmer had made a change over the weekend. I recompiled the program and took a retry on the CL. The job finished successfully.
—————————————————————————————
To answer the question how to look at a files permissions:

<pre>DSPOBJAUT OBJ(filename) OBJTYPE(*FILE)</pre>

Assuming you have authority to it

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
  • Splat
    CPF4131 is a level check message. WRKOBJLCK isn't going to tell you much in this situation and object permissions aren't what's triggering that message. From the description of your solution, it sounds like your programmer compiled the program over either an older or newer version of the file.
    6,865 pointsBadges:
    report
  • Sai4AS400
    Hi guys,
    Finally,what exactly we need to do in case of this error?. Please suggest the appropriate actions in  detail..Thanks!
    1,420 pointsBadges:
    report
  • TomLiotta

    ...what exactly we need to do in case of this error?

    In case of that error, you do what the message text tells you to do.

    Tom

    125,585 pointsBadges:
    report
  • philpl1jb

    Have you experienced this error? 

    The program was compiled over a version of a file that isn't identical in structure to the version that it tried to use while running. 

    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