LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
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: 36
I use dd on HPUX and on Linux all the time for conversions.

What do you mean by "garbage"?
 
  


Reply



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 17 05-08-2018 09:55 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration