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: 8578
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 Help this REXX Rookie-Bad arithmetic ... CLIST & REXX 7
No new posts Date conversion using SORT SYNCSORT 4
No new posts include cond ascii constant DFSORT/ICETOOL 4
This topic is locked: you cannot edit posts or make replies. Write Character to Hexadecimal file w... COBOL Programming 8
No new posts Date Conversion Y2T to Y2W SYNCSORT 8
Search our Forums:

Back to Top