×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Steve,
Try using CPYTOIMPF or CPYTOSTMF instead of CPYTOPCD.


Terry Anderson
Programming Manager
Citation Corporation
Switchboard 1.251.867.5481 ext 212
Direct Line 1.251.809.2312
Fax 251.867.0525
Cell 1.251.363.4975




message: 8
date: Fri, 16 Jan 2009 16:05:26 -0000
from: "Steve Dodkins" <Steve.Dodkins@xxxxxxxxxxxxxxx>
subject: Amending a File in the IFS

Hi

I am using the following command to copy a file to the IFS
and then email it out from the iSeries

CPYTOPCD FROMFILE(CURQUERY/PURCHEDI5) TOFLR(STEVE) +
TODOC(EDI.TXT) REPLACE(*YES) TRNTBL(*DFT) +
TRNFMT(*TEXT)

However the file copied to the IFS contain a character 
at the end of the file but on at the beginning of the next line

Is there a way I can remove this character ?

Regards

Steve Dodkins
I.T Manager
?
ebm-papst UK Ltd?
Chelmsford Business Park,
CM2 5EZ Chelmsford,
UK
Tel: +44 (0) 1245 468555
Dir: +44 (0) 1245 456510
steve.dodkins@xxxxxxxxxxxxxxx
www.ebmpapst.co.uk


_____________________________________________________________
_________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
_____________________________________________________________
_________

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.