Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
EBCDIC to ASCII conversion help

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: EBCDIC to ASCII conversion help
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: 8567
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 23, 2020 7:12 pm    Post subject: Reply to: EBCDIC to ASCII conversion help
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date format conversion kushkush DFSORT/ICETOOL 4 Wed Oct 28, 2020 8:34 pm
No new posts EBCDIC (0037) to/from UTF-8 (1208) Harold Barnes CLIST & REXX 2 Tue Sep 22, 2020 9:11 pm
No new posts Bad arithmetic conversion when assign... Ajay Baghel CLIST & REXX 4 Tue Nov 26, 2019 11:29 am
No new posts String to ASCII conversion JPLMARTINS COBOL Programming 4 Sun Sep 29, 2019 12:00 am
No new posts Pack to Unpack conversion for sending... A_programmers COBOL Programming 13 Wed Sep 11, 2019 10:46 pm

Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us