The program works correctly, 107 lines;

when applied to source text and conversion is done from ASCII to EBCDIC
(using the two code tables from the previous mail) and then the other way,
the final result is identical with the original file :-)

Kind regards

Bernd


Am 29.12.2020 um 23:05 schrieb Bernd Oppolzer:
It's ok for me, it's always fun to think about the problems other people have;
sooner or later, they may be yours ...

I started to write a Pascal program using my Stanford compiler;
I fed it with two code tables in a format which I downloaded some time ago from an IBM site (IIRC).
I tried to attach the two files (don't know, if this will work here).
See CP00037 for a certain EBCDIC code page and CP01252 for the normal Windows code page;
the characters match, when their NAME is the same in both tables.

The program first reads the code table (files), then it builds the translation table, and then it is ready to process the REAL input file. This way it can do every desired code translation
(given the two source and target codepage files).

If you are interested in the result, contact me offline.

Kind regards

Bernd


Am 29.12.2020 um 22:29 schrieb R.S.:
Yes, exactly.
This is one of the reasons for custom-defined table.
Custom-defined is not "standard"
And yes, the goal is to change selected characters, and prepare the opposite table. Of course translation can be reversible when the table has unique values (this is first of the conditions) . So, for example it can be A->B translation, but B has to be translated as well, let's say B->A. That would change ADAM BROWN to BDBM AROWN (assuming other characters are not translated), but it reversible. Let's say translation A -> B and B unchanged would give BDBM BROWN and there is no way to find out which character need to be reversed.


BTW: I feel guilty a little bit. I just asked simple question and paid attention of many gentlemen here. I hope the attention is not just to solve my boring, rather off-topic issue, rather there is nothing interesting to do instead. ;-)

However thank you all for your help!



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

Oppolzer-Informatik
Dipl. Inf. Bernd Oppolzer
Bärenhofstraße 23
70771 Leinfelden-Echterdingen
—————————————————————
Tel.: +49 711 7949591
priv.: +49 711 7949590
mobil: +49 151 75005359
eMail: [email protected] <mailto:[email protected]>
Web: http://bernd-oppolzer.de/job.htm <http://bernd-oppolzer.de/job.htm>
—————————————————————
Für Umsatzsteuerzwecke:
SteuerNr.: 97 076 / 29921
USt-ID-Nr.: DE 147 700 393
—————————————————————
Oppolzer-Informatik 1983 - 2021
38 years of experience in computer science**




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

Reply via email to