LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2014, 07:48 AM   #1
HABBIESNIGDHA
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
Tools on linux to convert EBCDIC to ASCII format


Hi,
Please tell me any tools available in the market whether(paid/free) to convert EBCDIC format files to ASCII format files.
 
Old 08-21-2014, 08:14 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,063

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
i use od sometimes to facilitate files transferred from the mainframe. (also, the ftp client tries its best to convert during transfer).
 
Old 08-21-2014, 08:37 AM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 820

Rep: Reputation: 197Reputation: 197
I just googled and came up with many links of which this looks simple.

http://www.3480-3590-data-conversion...cii-table.html

So why didn't you do it?

OK
 
Old 08-21-2014, 08:52 AM   #4
HABBIESNIGDHA
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks for the replies.

I tried with DD statement. But this is not working with packed data type on mainframes. I am looking for some command line tool that supports with linux .

Kindly help me if you know any thing tool or command line interface for these conversions.
 
Old 08-21-2014, 08:59 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993
Quote:
Originally Posted by HABBIESNIGDHA View Post
thanks for the replies.
I tried with DD statement. But this is not working with packed data type on mainframes. I am looking for some command line tool that supports with linux .
Kindly help me if you know any thing tool or command line interface for these conversions.
We did, and you were provided links, and you were also asked why you weren't able to look this up yourself. Google has MANY options...here's ONE, and you can easily find others.

http://www.vedit.com/ebcdic.htm
 
Old 08-21-2014, 09:12 AM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,063

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
Quote:
Originally Posted by HABBIESNIGDHA View Post
thanks for the replies.

I tried with DD statement. But this is not working with packed data type on mainframes. I am looking for some command line tool that supports with linux .

Kindly help me if you know any thing tool or command line interface for these conversions.
dd is for image backups (disk duplicator) so it wotnt convert anything. i meant object dump (od); i think there is a switch for it to print printable characters from multiple char types.

also play around with the ftp command in binary mode or type e...
 
Old 08-21-2014, 09:17 AM   #7
HABBIESNIGDHA
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
i am in a situation that My client will not allow me to install any tools on his side. which I can get from these links . i am looking for some command prompt or script on Linux to do these conversions I am very new to LINUX. this is my first exposure . if there are such scripts /prompts kindly let me know.


Thanks in advance.
 
Old 08-21-2014, 09:18 AM   #8
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,184

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
actually -- dd is a "disk duplicator" for sure. But it's also a copier and converter, see "dd conv":

http://linux.die.net/man/1/dd

Using it to convert EBCDIC should work like this:

Code:
dd conv=ascii if=EBCDIC.txt of=ASCII.txt
 
2 members found this post helpful.
Old 08-21-2014, 09:18 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,181

Rep: Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953Reputation: 1953
The big issue with packed decimal is the byte order mis-match between big-endian and little-endian. I did look into this a few years back, but decided it was all too hard. Best bet it to process it on the mainframe first - XML is easy to ship and interpret.

Perl has a few routines on CPAN, but I doubt they handle packed - but I haven't tried.
 
Old 08-21-2014, 09:21 AM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,063

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
you will probably need to learn (or hire someone) to read and convert data. can you upload a sample few lines somewhere of what you are trying to re-create and also provide what you would need it translated to (kinda' like a rosetta stone) ?
 
Old 08-21-2014, 09:26 AM   #11
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Linux Mint 18
Posts: 7,809

Rep: Reputation: 294Reputation: 294Reputation: 294
Quote:
Originally Posted by HABBIESNIGDHA View Post
thanks for the replies.

I tried with DD statement. But this is not working with packed data type on mainframes. I am looking for some command line tool that supports with linux .

Kindly help me if you know any thing tool or command line interface for these conversions.
The IBM packed data type is neither EBCDIC nor ASCII. If you run packed data through a translation program it will produce garbage. If your records on the mainframe contain a mixture of EBCDIC and packed data then you will have to write a program that converts each record field by field. The same thing holds true if your mainframe records also contain binary or floating point fields.

-----------------------
Steve Stites
 
2 members found this post helpful.
Old 08-21-2014, 09:29 AM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,063

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
if you are getting numbers (e.g. money, dates, serial numbers) from a db2 table dump, perhaps you can wrap your sql selects in something like: char(payment_amount).
 
Old 08-21-2014, 09:50 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993Reputation: 3993
Quote:
Originally Posted by HABBIESNIGDHA View Post
i am in a situation that My client will not allow me to install any tools on his side.
You didn't mention this before now, and if you can't INSTALL anything, why are you even bothering to look this up? No matter what you find, you won't be able to use it.
Quote:
which I can get from these links . i am looking for some command prompt or script on Linux to do these conversions I am very new to LINUX. this is my first exposure . if there are such scripts /prompts kindly let me know.
We did...several times now. You were given some already...did you not look at them???

And again, you can go to Google and put in your search terms, and find many, MANY thousands more on your own. We also told you that before.
 
Old 11-11-2014, 02:36 PM   #14
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,081
Blog Entries: 1

Rep: Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149Reputation: 2149
Quote:
Originally Posted by vickyharinath@gmail.com View Post
A free EBCDIC > ASCII [mod_edit]commercial link removed[/mod_edit] tool would be the [mod_edit]commercial link removed[/mod_edit] ‘Lite’ Edition from IRI for file-based data migrations. It will run on Linux or Windows and has a free Eclipse GUI for Windows to create job scripts via wizards. Includes COBOL copybook parser to auto-define the input file metadata for the jobs. Redefines are supported to a point, especially with support (not free).
Welcome to LQ - but looking at your posts I can't help but think SPAM...

But to be fair, please see the LQ rules about not advertising.

Last edited by Tinkster; 11-11-2014 at 03:02 PM. Reason: mod_edit
 
  


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
Convert a string from ASCII to EBCDIC Z038 Linux - General 4 11-26-2012 03:09 PM
Converting IBM EBCDIC file to ASCII on Unix jjb038 Linux - General 7 11-14-2009 05:23 PM
[SOLVED] Simple Linux script to convert datetime format to UTC format shayno90 Linux - Newbie 10 10-09-2009 08:19 AM
Conversion from EBCDIC to ASCII aravindts Programming 2 06-27-2007 03:05 PM
EBCDIC to ASCII in Perl ppanyam Programming 1 01-06-2006 11:35 AM


All times are GMT -5. The time now is 01:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration