CPYTOIMPF error code 7

350 pts.
Tags:
AS/400 administration
Copy To Import File
CPYTOIMPF
When i enter this command I find this error:

CPYFRMIMPF FROMSTMF('/new_recon_conv.csv') TOFILE(NAVNEET/TT4 TT4) MBROPT( *REPLACE) RCDDLM(*CRLF) STRDLM('"') FLDDLM('|') DATFMT(*USA) RPLNULLVAL(*F LDDFT) 

The copy did not complete for reason code 7. What should I do?

Answer Wiki

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

Probably some fields in your dds are defined an numeric and the field you are dumping
from the .csv has a bit of character in him.

Discuss This Question: 5  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
  • Gilly400
    Hi, If you check your joblog and look at the details of the error message it should tell you what reason code 7 is and what you can do to correct it. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Kapiltiwari
    Thanks to all of you, I have done.
    350 pointsBadges:
    report
  • Kapiltiwari
    CPYFRMIMPF FROMSTMF('/new_recon_conv.csv') TOFILE(NAVNEET/TT4 TT4) MBROPT( *REPLACE) RCDDLM(*CRLF) STRDLM('"') FLDDLM('|') DATFMT(*USA) RPLNULLVAL(*F LDDFT) For this command i have created blank TT4 file .I copy the New_recon file from IFS to window and then using 'create file' option in data transfer to AS/400 tool.then i run the command CPYFRMIMPF on server.For last 3 -5 days i run the command without with creating file again.I just clear TT4 file and run the command.But today New recon file structure has been changed .so it is giving error.i can create blank TT4 file again.but is there any shortcut way to create TT4 file directly from recon file on IFS.
    350 pointsBadges:
    report
  • Gilly400
    Hi, Have you tried deleting the file first? You should be able to build this into your job, so that you always delete the old file before creating a new one. Regards, Martin Gilbert.
    23,730 pointsBadges:
    report
  • Kapiltiwari
    Hi, as we do in CPYF command. we create the "TO FILE" at command execution time by passing create file parameter *yes. same can we for file on IFS
    350 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