EBCDIC Format to Normal String

Hi,
I have EBCDIC format file and i wold like to convert normal string(user readable) in unix .
The source having the binary IBM file format
Sample Source Format:


������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@����������@@@@@@@@@@@@@@���

I have write a code like the follwoing.



dd if=<SRCPATH>yyy.xxx.RB065 of=<SRCPATH>/output.csv ibs=800 cbs=80 conv=ascii,lcase;

Then the output file contains:

040101              01B0040101              01P0040101              07B0040101  
            07P0040101              09B0040101              09P0040101          
    10B0040101              10P0040102              01B0040102              01P0
040102              09B0040102              09P0040102              10B0040102  
            10P0040103              01B0040103              01P0040103          
    09B0040103              09P0040103              10B0040103              10P0


But it not in user readable format
How to convert the EBDIC format to nomal sting in unix.

There are few tools available to convert ebcdic to ascii.
Free Online EBCDIC to ASCII Text Converter

The dd (data definition) utility can do the conversion. google for more information

man dd 

or use

dd ebsidic.

---------- Post updated at 10:50 AM ---------- Previous update was at 10:41 AM ----------

For example, to read an EBCDIC tape on tape device /dev/rmt0 and convert it to ASCII, putting the output in file was_ibm :

% dd if=/dev/rmt0 of=was_ibm ibs=800 cbs=80 conv=ascii dd reads standard input and writes to standard output, but if you want to specify file or device names, you can use the fairly non-standard if= and of= options to specify the input file and output file, respectively.
If you wanted to convert the other way, you could use this command:

Thank you for update,
I have wrote the dd script and the out put text like

Script :

dd if=<SRCPATH>yyy.xxx.RB065 of=<SRCPATH>/output.csv ibs=800 cbs=80 conv=ascii,lcase;

But the ouput like below but it's not readable format.


040101              01B0040101              01P0040101              07B0040101  
            07P0040101              09B0040101              09P0040101          
    10B0040101              10P0040102              01B0040102              01P0
040102              09B0040102              09P0040102              10B0040102  
            10P0040103              01B0040103              01P0040103          
    09B0040103              09P0040103              10B0040103              10P0

The conversion in "dd" is only suitable for simple character files in EBCDIC (256 character set). It is not suitable for binary files.
I expect that it's going to be much easier to export in ASCII text file format on the source computer.