Re: Convert file Ascii (55 Views)
Reply
Regular Advisor
Posts: 159
Registered: ‎10-04-2006
Message 1 of 3 (55 Views)

Convert file Ascii

Hi

Would you please guide me how should i convert EBCDIC format to ASCII format.
Would you please help me by providing the command for the same.

I want to achive
1)Convert EBCDIC format to ASCII format.
2)want to convert Convert carriage return value

Acclaimed Contributor
Posts: 25,666
Registered: ‎03-06-2006
Message 2 of 3 (55 Views)

Re: Convert file Ascii

You can use dd(1):
dd if=ifile of=ofile conv=ascii

This assumes variable length records terminated by EBCDIC newlines. If not, you need provide more info. Record sizes, etc.
(Possibly using conv=ibm?)
Regular Advisor
Posts: 159
Registered: ‎10-04-2006
Message 3 of 3 (55 Views)

Re: Convert file Ascii

thx
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.