W dniu 29.12.2020 o 18:54, Paul Gilmartin pisze:
On Tue, 29 Dec 2020 18:12:06 +0100, R.S. wrote:
1. Yes, maybe I described it incorretly.
Regarding your question - yes I need something like
convert ifile ofile [-tablefile]
Just byte to byte translation. No CR/LF issues, no record boundaries,
just byte to byte. The file can be large (may not fit in memory).
I'm surprised. Is the input file a text file? How are records delimited?
(Is it organized in records?) If it's binary data I wouldn't expect
conversion to be useful.
Perhaps the answer to all such questions is RECFM=FB.
Does it originate on z? How does it get to Windows?
FTP BINARY?
Are you writing a tool for non-programmers to use?
The input file contain some text and some other fields. CR/LF,
RECFM=FB/VB and other "end of line" issues are not relevant.
The idea is to convert it to readable format, analyze content and maybe
modify very few words or characters. Modified file should be converted
back to original format. Obviously conversion forward and backward
should give file equal to the source file.
Modification can be understood like replacement "Radek" to "Gil.." or
"AAAA" to "BBBB". No change of length, just byte to byte replacement.
ISPF browse/edit with proper codepage is not an option due to some
reasons I don't want to describe, technically irrelevant.
FTP translation is also not an option. And I would like to avoid Rube
Goldberg process like ftp put with no translation and then get with
custom translation. However this method can be run in batch and it is
feasible even for large files.
No, I'm not writing any tool - I want to avoid it and simply save
people's time spent on the process.
Maybe I'm naive, but I believed such tools simply exist and are
available for download - like many, many other small and useful utilities.
Regards
--
Radoslaw Skorupka
Lodz, Poland
======================================================================
Jeśli nie jesteś adresatem tej wiadomości:
- powiadom nas o tym w mailu zwrotnym (dziękujemy!),
- usuń trwale tę wiadomość (i wszystkie kopie, które wydrukowałeś lub zapisałeś
na dysku).
Wiadomość ta może zawierać chronione prawem informacje, które może wykorzystać
tylko adresat. Przypominamy, że każdy, kto rozpowszechnia (kopiuje,
rozprowadza) tę wiadomość lub podejmuje podobne działania, narusza prawo i może
podlegać karze.
mBank S.A. z siedzibą w Warszawie, ul. Prosta 18, 00-850 Warszawa,www.mBank.pl,
e-mail: kont...@mbank.pl. Sąd Rejonowy dla m. st. Warszawy XII Wydział
Gospodarczy Krajowego Rejestru Sądowego, KRS 0000025237, NIP: 526-021-50-88.
Kapitał zakładowy (opłacony w całości) według stanu na 01.01.2020 r. wynosi
169.401.468 złotych.
Jesteśmy administratorem twoich danych osobowych, które podałeś w związku z
prowadzoną z nami korespondencją. Przetwarzamy te dane dla celów, które
wynikają z przedmiotu korespondencji, w tym związanych z prowadzoną
działalnością bankową.
Więcej informacji o tym jak chroniony i przetwarzamy dane osobowe znajdziesz w
Pakietach RODO (w wersji polskiej i angielskiej), które są na www.mbank.pl/rodo
If you are not the addressee of this message:
- let us know by replying to this e-mail (thank you!),
- delete this message permanently (including all the copies which you have
printed out or saved).
This message may contain legally protected information, which may be used
exclusively by the addressee.Please be reminded that anyone who disseminates
(copies, distributes) this message or takes any similar action, violates the
law and may be penalised.
mBank S.A. with its registered office in Warsaw, ul. Prosta 18, 00-850
Warszawa,www.mBank.pl, e-mail: kont...@mbank.pl. District Court for the Capital
City of Warsaw, 12th Commercial Division of the National Court Register, KRS
0000025237, NIP: 526-021-50-88. Fully paid-up share capital amounting to PLN
169.401.468 as at 1 January 2020.
We are the controller of your personal data, which you provided in connection
with correspondence with us. We process your data for purposes resulting from
the subject of correspondence, including those related to the banking services.
More information on how we protect and process personal data can be found in
the GDPR Packages (in English and Polish), which are on www.mbank.pl/rodo.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN