login about faq

How to convert ASCII to EBCDIC on z/OS?

asked Jan 11 '11 at 13:28

SSH%20KB's gravatar image

SSH KB ♦
509249246237


The general assumption on mainframe is that text files are in EBCDIC coding.

Sometimes, when text files (for instance public keys) have been copied from Unix or Windows systems, the conversion from ASCII to EBCDIC may have been forgotten.

In that case the files can be converted manually with the iconv utility in USS. The following command will convert the contents of file1 from ASCII to EBCDIC and save the outcome in file2:

iconv -f ISO8859-1 -t IBM-1047 file1 > file2
link

answered Jan 11 '11 at 13:29

SSH%20KB's gravatar image

SSH KB ♦
509249246237

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×34
×4
×1

Asked: Jan 11 '11 at 13:28

Seen: 21,690 times

Last updated: Mar 08 '11 at 16:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.