× 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.



Don't hit me, but is this doable on v3r2?  (the Unix open/read/close api's)

I agree.  This is going to be a recurring thing that needs to run
automatically.  Can't be doing search & replace every time I receive a new
file.

Is CPYFRMSTMF an option?

- Dan Bale

-----Original Message-----
From: midrange-l-admin@midrange.com
[mailto:midrange-l-admin@midrange.com]On Behalf Of jpcarr@tredegar.com
Sent: Thursday, February 14, 2002 2:39 PM
To: midrange-l@midrange.com
Subject: RE: Unix file to PC, weird LF-CR



Skip all that stuff,   FTP it to the IFS,  then read it byte by byte with
an RPGIV program and interigate it yourself,  throw away what you don't
want,  write the fields/records when you want to.

RPGIV with the Unix  Open/Read/Close API's are alot easier than looking at
it with some tool like word pad and wondering what you are seeing.  Plus,
the Bytes you see in the RPG program is what it is in EBCIDIC the way you
are going to store them anyway.

just  $.02
John Carr
---------------------------------


If you need to replace the lf character with a cr/lf before moving the file
to the 400, open the file in an editor like Text Pad that supports hex and
do a global search and replace.

This is a one shot solution that assumes the file is small enough to open
in
a reasonably capable editor.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.