Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-27-2007, 08:17 AM   #1
LQ Newbie
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
Post Conversion from EBCDIC to ASCII

Hi All,

I have a requirement to convert an EBCDIC file to ASCII.
I tried to use dd command, but it produces junk characters in resulting output.The file is basically an extract prepared from a couple of tables and has a header and a footer.

Any help/Pointers/Or code snippets to convert EBCDIC to ASCII and ASCII to EBCDIC is appreciated.

It is HP-UX B 11.11 OS.

Old 06-27-2007, 08:37 AM   #2
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: tri boot :: Fedora 22 && 23 && Rawhide == Testing Systemd
Posts: 222

Rep: Reputation: 50
Does this help you?
Old 06-27-2007, 04:05 PM   #3
jim mcnamara
Registered: May 2002
Posts: 964

Rep: Reputation: 34
I use dd on HPUX and on Linux all the time for conversions.

What do you mean by "garbage"?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[bash] ASCII to HEX and hex to ascii ////// Programming 15 03-20-2014 02:23 PM
How do I enable the ASCII conversion chart characters Thane Ubuntu 5 06-01-2007 07:33 PM
EBCDIC to ASCII in Perl ppanyam Programming 1 01-06-2006 12:35 PM
ASCII C Help, Please InvisibleSniper Programming 33 10-10-2005 11:25 AM
ASCII help My_World Linux - General 1 04-13-2003 01:17 PM

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration