Avoiding truncation of trailing blanks using CPYTOIMPF

0 pts.
Tags:
Development
I am trying to transfer a 488-byte fixed-record-length file from the i-Series to an ASCII file in an IFS folder, using CR/LF as the fixed-length record delimiter. The problem is that when I use CPYTOIMPF, it truncates the trailing blanks, and places the CR/LF hex codes directly after the last non-blank character in each record. This is unacceptable to the recipient of my file. Is there a way to preserve the 488-byte length and ensure that the CR/LF goes into pos. 489-490 on the converted ASCII file?
ASKED: January 31, 2005  7:40 AM
UPDATED: January 31, 2005  3:13 PM

Answer Wiki

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

In cpyimpf command you can define the file format.

Record format of import file . . *DLM *DLM, *FIXED

I think you should choose *fixed here to resolve the issue.

regards,

PG

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