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.