AS400 – CRTLIB – Getting error CPF3204 – Cannot find object needed for file FIL in Library LIB

20 pts.
Tags:
AS/400 CRTLIB
Hi,

I have a CL program, which checks if a PF is present in production in Library Lib1 using CHKOBJ. If the PF is present, then the Logical File is created using CRTLIB command. The source library is mentioned in the CRTLIB command. The LF will be created in a different library (Lib2) and not in the same library where PF is present.

When this CL program is executed in production, I get the error CFP3204 - Cannot find object needed for file FIL in Library Lib2.
This command is working fine in the test environment. 

Could you please advise what might be causing this problem in production alone? The library list seems to be fine.

Thanks.
Sasi.


Software/Hardware used:
AS/400

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: 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.

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
  • TomLiotta
    I get the error CFP3204...   What statement throws the error? What is the full text of the message?   If we don't see the code, we have no idea what might be a problem. If we don't see the full message, we don't even know what the actual problem is.   Something is missing that one of your commands needs. Create the proper object or make it available to your program. We don't know which object nor which command is involved.   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Something is odd in your question. The CRTLIB command does not create Logical Files.  The CRTLF command should be (and probably is) used.  To create a logical file the command has to find the source member, the physical file and perhaps a reference file. 
    49,600 pointsBadges:
    report
  • aceofdelts
    I'm getting this error today on a CRTLF. Text says "cannot find object" tho the PF does exist in libl (a major file so all hell would break loose if it were gone) and LF key fields do exist. I suspect it is due to triggers on the PF. I'll keep digging & let you know (unless someone else knows now).
    1,850 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