Converting Binary decimal coded values to Ascii Values

Hi All,

Is there any command which can convert binary decimal coded values to ascii values...

i have bcd values like below

������������0�-a-a -v -

Pls suggest a way to convert this.

Thanks,
Deepti.Gaur

See: man dd

Hi ,

I have tried the below things but i am getting the output as all numbers

dd if=inputfile of=test.dat ibs=512 cbs=0 conv=ascii
dd conv=ascii | od -c inputfile > test.dat

i am getting the below values

0000140 4149 4c4c 474d 412e 3946 4939 4942 302e
0000160 3630 3133 3930 0333 4500 5888 8e82 eeee
0000200 eeee eeee eeee 0299 0075 0063 0000 3208
0000220 8888 ee73 eeee 0eee 0e0e 300e 0e03 e863

the above values contains varchar and date columns which i am not able to see

pls suggest any other way

Thanks,
Deepti.Gaur

if your inputfile contains ONLY EBCDIC characters, dd in=inputfile out=outputfile conv=ascii will do the job.

If you're not getting what you expect, your data is either totally or partially NOT EBCDIC!!!

Can you verify it?