-1

I want to tail a log file in Unix system services on a Mainframe LPAR that needs a ASCII to EBCDIC conversion?

1
  • Thanks for the information; what is the question? Dec 22, 2016 at 16:39

2 Answers 2

3
tail /path/to/input | dd conv=ebcdic of=/dev/stdout

Or, to write to a file:

tail /path/to/input | dd conv=ebcdic of=/path/to/output

To convert the other way (EBCDIC to ASCII), use conv=ascii.

1

Using iconv:

tail /path/to/file | iconv -f ISO8859-1 -t IBM-1047

Not the answer you're looking for? Browse other questions tagged .