LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-27-2007, 07:17 AM   #1
aravindts
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.

Thanks,
Aravind
 
Old 06-27-2007, 07:37 AM   #2
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Dual boot :: Slackware 14.1 64bit multilib | Kali linux 64bit multi lib
Posts: 164

Rep: Reputation: 34
Does this help you?
http://search.cpan.org/~cxl/Convert-...vert/EBCDIC.pm
 
Old 06-27-2007, 03:05 PM   #3
jim mcnamara
Member
 
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"?
 
  


Reply


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 01:23 PM
How do I enable the ASCII conversion chart characters Thane Ubuntu 5 06-01-2007 06:33 PM
EBCDIC to ASCII in Perl ppanyam Programming 1 01-06-2006 11:35 AM
ASCII C Help, Please InvisibleSniper Programming 33 10-10-2005 10:25 AM
ASCII help My_World Linux - General 1 04-13-2003 12:17 PM


All times are GMT -5. The time now is 09:53 AM.

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