Joined: 23 Sep 2020
Location: South East
I have a EBCDIC file that has been NDMed to a Linux box. This file has non-printable charterers I want to convert to its ASCII charterer representation, e.g., smart quote to and ASCII quote: Hex '92' changed to HEX '27'
1) know of a mapping table/document I could use in a conversion routine on Linux?
2) know of an IBM utility that will do the conversion for me on Linux?
Also, if you would share your experiences that would help as well.
Thanks in advance for any help.
Joined: 06 Jun 2008
Location: Dubuque, Iowa, USA
|First, this is meaningless:
A transfer is either text, in which EBCDIC characters are replaced by ASCII characters, or it is binary in which EBCDIC characters are not translated to ASCII. Whether the transfer is NDM or FTP or SFTP or FTPS or whatever doesn't generally matter.
|I have a EBCDIC file that has been NDMed to a Linux box.
You need to clarify here -- is the hex '92' in ASCII or EBCDIC? It is a \ or a lower-case k depending upon which collating sequence is used (and note that NEITHER of these is a non-printing character as you stated), and changing either one of them to an ESC character (x'27' in ASCII) doesn't necessarily make sense.
|This file has non-printable charterers I want to convert to its ASCII charterer representation, e.g., smart quote to and ASCII quote: Hex '92' changed to HEX '27'
You could use a conversion table if you're using plain FTP, and I assume that NDM supports a conversion table but you'll need to work with the vendor on the details of that. Converting during the transfer is, by far, your best bet.