IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

EBCDIC to ASCII conversion help


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
t_bt2

New User


Joined: 23 Sep 2020
Posts: 1
Location: South East

PostPosted: Wed Sep 23, 2020 6:34 pm
Reply with quote

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.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 23, 2020 7:12 pm
Reply with quote

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.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts 10 byte RBA conversion DB2 2
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts file manager is doing string conversion IBM Tools 3
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts SMF Record Date conversion failing CLIST & REXX 1
Search our Forums:

Back to Top