× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Dodkins
Sent: Friday, January 16, 2009 10:05 AM
To: Midrange Systems Technical Discussion
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 don't know where it is coming from, but when I cut'n'paste it, I end
up with a 0x1A or a control-z. In the old days of CP/M-80, MS-DOS, and
Windows, that character was considered an "end of file" character. If
this were in a UNIX file, then you could run a UNIX command:

tr -d '\032' <input.file >output.file

'\032' is the octal escape for the hex 0x1A.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)
Administrative Services Group
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john.mckown@xxxxxxxxxxxxxxxxx * www.HealthMarkets.com

Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential or proprietary information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.