I like IBM's Unicode Services on z/OS for internationalization and conversion 
support, but of course z/OS only. A corresponding set of services and functions 
provided by IBM for LUW platforms as a free download would be most welcome! 

The following utility may have already been mentioned, but not sure, so...  
https://sourceforge.net/projects/convertcp/  

HTH, 
Mike 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of R.S.
Sent: Tuesday, December 29, 2020 12:12 PM
To: [email protected]
Subject: Re: EBCDIC-ASCII converter and other tools

Caution! This message was sent from outside your organization.

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 agree, it is not black magic. Actually ...I did it in the past.
I wrote simple program in Turbo Pascal. AFAIR 1 hour later I modified it to 
read translation table from a file.
However it was many moons ago and the tool is no longer usable, cause it is 
16-bit application (for DOS) and current x64 Windows does not run such 
programs. There are tools like virtual machine or just DosBox, but it seems to 
be Rube Goldberg solution.
While I am still able to code a program (I hope so!), I don't want to start the 
project, install huge tool like Visual Studio, start learning "foreign" 
language, learn all the environment specifics, etc. It is just like building 
brewery just to have a beer for dinner. Not to mention security policies.
As I said, I did it in the past, using ancient (now) tools, and I know how to 
do it in z/OS realm. And it seems simple, so I hope someone already did it and 
the tool is available as many, many other tools.
HxD has many advantages, but I guess it has no batch mode. Batch is better - it 
is automatic ;-) I don't know how many files will be processed that way, now it 
is possible to do it manually, but thing may change.

2. This is even simpler tool, maybe it address rare need - just to truncate 
first nnn bytes from beginning of file Possible usage:
truncfile -header -12384 ifile ofile
truncates/deletes header, which is 12384 bytes long, the output is written to 
ofile. Ofile is shorter than ifile, the difference is 12384 bytes. No CR/LF 
issues, just byte after byte.

I'm going to install HxD and try its features. However I'm still looking for 
something batch-able.

Thank you!

Regards
--
Radoslaw Skorupka
Lodz, Poland






W dniu 29.12.2020 o 17:32, Charles Mills pisze:
> 1. Conversion tool: your question is a little under-specified. You 
> want a file to file conversion program? Read in a file in EBCDIC and 
> write it out in ASCII?
>
> Do you have any ability at all to write a program for Windows? In C, 
> Rexx, Visual Basic, etc.? The basics of translation are fairly simple. 
> Would not be terribly hard to read-in the translation table from some 
> specified source. Can you code at all in any non-mainframe-specific 
> language? MS Visual Studio is free in lightweight versions and would 
> let you build and debug a simple program pretty readily.
>
> There is the nasty problem of line endings. (Don't get @Gil started 
> <g>) Do you expect "records" in ASCII? How will they be delimited? How 
> will the line endings in the EBCDIC file be indicated?
>
> 2. Pretty much the same answer.
>
> @Steve, I don't think it's what he is looking for, but another vote 
> here for HxD in general. I find it useful for examining EBCDIC files on a PC.
>
> Charles
>
>
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] 
> On Behalf Of R.S.
> Sent: Tuesday, December 29, 2020 5:30 AM
> To: [email protected]
> Subject: EBCDIC-ASCII converter and other tools
>
> 1. I'm looking for some simple tool for conversion EBCDIC to ASCII and 
> vice versa.
> Unfortunately it has to run under Windows.
> Requirements:
> Run under Windows, preferrably in batch mode (command line interface) 
> Custom-defined tables of conversion
>
> 2. I'm looking for a tool similar to IDCAMS SKIP/COUNT - the goal is 
> to skip first nnn bytes of the file or skip file remainder.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO IBM-MAIN .




======================================================================

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: [email protected]. 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: [email protected]. 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 [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to