CPYTOIMPF – Physical file to IFS, get imbedded blanks

50 pts.
Tags:
CPYTOIMPF
DDS
IFS
I have a physical file with the following fields. (field - attribute - sample content) FILL01 - 1A - blank KEY - 8A - AAPCTINV LENGTH - 2S 0 - 60 TEXT - 60 A - 8028038 When looking at the file using DSPPFM, the info = AAPCTINV608028038 Note, it has 1 space at the begining Using the following CPYTOIMPF FROMFILE(mylib/myfile) TOSTMF('/folder1/folder2/myfile.txt') STMFCODPAG(*STDASCII) RCDDLM(*CRLF) DTAFMT(*FIXED) When I look at the file on the IFS it shows as below: AAPCTINV60 8028038 The leading space is kept - but for some reason, there is a new space in there, between the LENGTH field and the TEXT field. I suspect it has to do with the LENGTH field being defined as signed? I don't care however - I want the data to come across with the same field placements FILL01 in column 1-1 KEY in column 2-9 Length in column 10-11 Text in column 12-60 Is there a parameter on the CPYTOIMPF command that controls this? or should I use a different command entirely - which I am open to, I want the easiest way possible to copy a DDS described file to the IFS. Thanks
ASKED: May 7, 2008  5:04 PM
UPDATED: May 8, 2008  9:10 AM

Answer Wiki

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

Hi,

If you want the data in exactly the same format I suggest trying CPYTOSTMF.

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