t_bt2
New User
Joined: 23 Sep 2020 Posts: 1 Location: South East
|
|
|
|
Hello All
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'
Does anyone
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. |
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
First, this is meaningless:
Quote: |
I have a EBCDIC file that has been NDMed to a Linux box. |
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.
Quote: |
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 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.
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. |
|