AS400, CLLE OPENID Already Exist Error

2430 pts.
Tags:
AS/400
CPF4174
Hi all. ! OPNID(M1AMC00) for file M1AMC00 already exists. CPF4174 received by procedure NONCLP. (C D I R). I'm getting this kind of error: what will be the solution? Surey

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.

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

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
  • Sureyz
    DCL VAR(&TXT) TYPE(*CHAR) LEN(100) CHGVAR VAR(&TXT) VALUE('DEP' *GT ' *CAT '01') OVRDBF FILE(M1AMC00) SHARE(*YES) SEQONLY(*NO) OPNQRYF FILE((*LIBL/M1AMC00)) OPTION(*ALL) + QRYSLT(&TXT) KEYFLD(*FILE) SEQONLY(*NO) CALL PGM(NONRPG) DLTOVR FILE(M1AMC00) CLOF OPNID(M1AMC00) this is my code i have already closed the file using CLOF .. but still im getting the same error.
    2,430 pointsBadges:
    report
  • TomLiotta
    Before anything else, try calling the program in a new session. Either start a second session and test the program or sign off, sign back on and test the program. If you get the error in a new session, check the joblog for any previous errors related to the file. Post results back here. -- Tom
    125,585 pointsBadges:
    report
  • Sureyz
    I just called the same program in different session, now its working fine .. thanks But what was the problem Mr.Tom ? Surey
    2,430 pointsBadges:
    report
  • TomLiotta
    One large possibility is that you called the program earlier in the same job, and there was an error that caused an exit early from the program. If you call the program again, the file could still be open in the job with the same open ID. You should ensure that the file is closed with error handling code when errors happen. Try running CLOF OPNID(M1AMC00) from a command line in the job that has the error. -- 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