bourne
November 25, 2005, 7:09am
1
can anyone get a script for converting EBCIDIC data to Unix ina file.. in shell...
thanks in advance!
RTM
November 25, 2005, 7:23am
2
You can use the dd command - see the man page
dd if=/yourdir/your-ebcdicfile of=/yourdir/your-asciifile conv=ascii
bourne
November 25, 2005, 8:45am
3
doesnot give a proper conversion... the above command... all i c is junk values.. cant make it out... and the reconversion is also not happenin correctly....
Neo
November 25, 2005, 10:15pm
4
Try this link from Harvard University.
How do I use EBCDIC, Column-Binary, Packed-Decimal ... data?
Some older data sets may use the EBCDIC character set, rather than the ASCII character set. However there are many variants of this and related encodings such as OSIRIS, column-binary, packed decimal, and zoned decimal. No single tool works automatically with all of these variants. If there is not complete documentation on the precise format used, you may anticipate trial-and-error with different variants. There are a few options to convert EBCDIC to ASCII data: visit this link for more information.