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. |
i use od sometimes to facilitate files transferred from the mainframe. (also, the ftp client tries its best to convert during transfer).
|
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 |
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. |
Quote:
http://www.vedit.com/ebcdic.htm |
Quote:
also play around with the ftp command in binary mode or type e... |
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. |
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 |
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. |
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) ?
|
Quote:
----------------------- Steve Stites |
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).
|
Quote:
Quote:
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. |
Quote:
But to be fair, please see the LQ rules about not advertising. |
All times are GMT -5. The time now is 02:56 AM. |