EOF marker in text file from AS400 to PC

25 pts.
Tags:
AS/400 command functions
CPYTOPCD
I'm a programmer/analyst using an AS400. We create multiple files daily on our AS400, copy them to PC documents using CPYTOPCD with TRNFMT = *TEXT, then upload them to other data processors. This works very well with most data processors but a few require that there be no EOF marker at the end of the text file. Right now I have my Operations dept. opening the text file, deleting the EOF marker, then uploading to the data processor. Is there any way to remove that EOF marker programmatically using CL or DOS so my operators don't have to do it manually?

Answer Wiki

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

Hi,

Maybe you could try CPYTOSTMF or CPYTOIMPF instead of CPYTOPCD?

Regards,

Martin Gilbert.

Discuss This Question:  

 
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

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