Solved

EBCDIC to ASCII conversion

Posted on 2010-09-15
2
228 Views
Last Modified: 2012-05-10
Hi Can someone help please.
I have a file that has been converted from ASCII to EBCDIC and i need to either search through the file for a aprticular string (my prefered option)eg . "123456"  a six digit number. or convert the whole file. to Ascii.
Have found an online converter but it only does small files and mine are around 10 meg
If this has to b e done in code is there a script i can use?  (not to hot on perl or VB)
Thanks
0
Comment
Question by:stopm
2 Comments
 
LVL 38

Accepted Solution

by:
hdhondt earned 250 total points
ID: 33697644
If you just want to search for the characters, you can use an EBCDIC table, e.g.:

http://www.astrodigital.org/digital/ebcdic.html

However, you will need a HEX editor to do the search. NotePad or equivalent won't let you search for arbitrary binary values (i.e. most EBCDIC characters).

Some editors understand EBCDIC. See, for example:

http://www.vedit.com/

To write a script you will need to use a lookup-table to do the conversion, as EBCDIC is a real mess: characters, symbols and control characters are all mixed up. In other words, read a byte, use the table to find the equivalent ASCII character, and write that byte.
0
 

Author Closing Comment

by:stopm
ID: 33773283
Thanks, still playing with v edit but looks like it will work for this issue
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Digital marketing agencies have encountered both the opportunities and difficulties that emerge from working with a wide-ranging organizations.
Notifications on Experts Exchange help you keep track of your activity and updates in one place. Watch this video to learn how to use them on the site to quickly access the content that matters to you.
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question