?
Solved

EBCDIC to ASCII conversion

Posted on 2010-09-15
2
Medium Priority
?
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
hdhondt earned 750 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Originally published Entrepreneur.com Booming numbers of freelancing professionals are changing the face of work. In the United States alone last year, the number of workers freelancing grew from 700,000 to 54 million, according to a Freelancers’…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
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.
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…
Suggested Courses

765 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