ASCII to EBCDIC - DD command
Posted on 2006-07-24
I'm using the DD command in UNIX to convert ASCII to EBCDIC so that I can print via "lp" to a AS/400 attached printer. I'm using the AS/400 as a print server. The command below works fine except that the carriage return/line feed disappear. The file prints without the carriage return line feed.
Here is the unix command:
cat $file | dd ibs=80 cbs=132 conv=ebcdic | lp -d AS400PRNT -s
Not that it should matter, but I'm running this under HPUX.