Creating a .CVS file

380 pts.
Tags:
.CVS file
CPYIMPF
How to create a .CVS file using CPYIMPF? This is what I have tried. PGM DCL VAR(&FILENAME) TYPE(*CHAR) LEN(100) + VALUE('/qDLS/AJ73/AMIT') DCLF FILE(AMITLIB/AMITPF) OPNID(OPNID1) CALL PGM(EMPPLY) CHGVAR VAR(&FILENAME) VALUE(&FILENAME *TCAT '.CSV') CPYTOIMPF FROMFILE(AMITLIB/AMITPF) + TOSTMF('&FILENAME') FLDDLM(',') ENDPGM It gives a copy error.

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: 2  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
  • jainamit
    Hey, I have got the answer. Thnx :)
    380 pointsBadges:
    report
  • TomLiotta
    Good, because you didn't tell us what the "copy error" was, s there wasn't much we could say. . Even if it was unrelated to the error, one definite issue is that you are pointing your output to /QDLS. That's a bad idea and should be avoided unless you know how /QDLS works and have a definite reason to use it. (There shouldn't be any reason.) . 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