LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Tools on linux to convert EBCDIC to ASCII format (https://www.linuxquestions.org/questions/linux-newbie-8/tools-on-linux-to-convert-ebcdic-to-ascii-format-4175515789/)

HABBIESNIGDHA 08-21-2014 07:48 AM

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.

schneidz 08-21-2014 08:14 AM

i use od sometimes to facilitate files transferred from the mainframe. (also, the ftp client tries its best to convert during transfer).

AnanthaP 08-21-2014 08:37 AM

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

HABBIESNIGDHA 08-21-2014 08:52 AM

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.

TB0ne 08-21-2014 08:59 AM

Quote:

Originally Posted by HABBIESNIGDHA (Post 5224790)
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

schneidz 08-21-2014 09:12 AM

Quote:

Originally Posted by HABBIESNIGDHA (Post 5224790)
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...

HABBIESNIGDHA 08-21-2014 09:17 AM

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.

szboardstretcher 08-21-2014 09:18 AM

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

syg00 08-21-2014 09:18 AM

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.

schneidz 08-21-2014 09:21 AM

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) ?

jailbait 08-21-2014 09:26 AM

Quote:

Originally Posted by HABBIESNIGDHA (Post 5224790)
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

schneidz 08-21-2014 09:29 AM

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).

TB0ne 08-21-2014 09:50 AM

Quote:

Originally Posted by HABBIESNIGDHA (Post 5224801)
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.

astrogeek 11-11-2014 02:36 PM

Quote:

Originally Posted by vickyharinath@gmail.com (Post 5268285)
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.


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