[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

EBCDIC to ASCII conversion

Posted on 2010-09-15
2
Medium Priority
?
246 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 39

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

If you want to move up through the ranks in your technology career, talent and hard work are the bare necessities. But they aren’t enough to make you stand out. Expanding your skills, actively promoting your accomplishments and using promotion st…
This article is written by John Gates, CISSP. Gates, the SNUG President-Elect, currently holds the position of Manager of Information Systems at Lake Park High School in Roselle, Illinois.
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
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…
Suggested Courses

649 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