RTVDIRINF giving CPF1ED7 when running in batch CL program…

40 pts.
Tags:
AS/400 commands
AS/400 jobs
CL
IFS
I want to run the RTVDIRINF command in a batch CL program.  However it keeps failing with CPF1ED7. I'm specifying a file prefix & library on the command and it's running under V6R1M0.

The command executes OK when ran from the command line with the same parms.

Anyone have any ideas as to what's wrong and how I might correct it?

Thanks, Jon


Software/Hardware used:
IBM iSeries V6R1M0

Answer Wiki

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

The answer appears to be that the command needs to be run under CCSID(37)!!!!!!

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
  • WoodEngineer
    That is an rather generic error message.  How you checked the job log when running submitted?
    6,650 pointsBadges:
    report
  • jontheblue
    Yes. The command is initially failing with CPD32B0 with reason code 15. 
     Constraint *N cannot be added for file IFSDIRLSTD in        
       library QTEMP for TYPE value *N. For a referential constraint (TYPE           
       *REFCST), the parent file *N in library *N has a delete rule of *N and        
       update rule of *N. The constraint was not added because of errors. The        
       reason code is 15. 
    This implies that the command is attempting to create file IFSDIRLSTD in library QTEMP. Why would it do this when I have specified a specific library to hold the information file on the RTVDIRINF command?   
    40 pointsBadges:
    report
  • jontheblue
    I've now found a resolution. By changing the CCSID on the job to 37 before running the RTVDIRINF command the command runs without incident. 
    40 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