Translating Between ASCII and EBCDIC Code

Use the OPTCD Q option of the FILEDEF command to indicate translation between ASCII and EBCDIC code. For example,
FILEDEF WELSH TAP3 NL (OPTCD Q
specifies that a nonlabeled tape on tape drive TAP3 will be processed. The OPTCD Q indicates that the information on the tape will be translated from ASCII to EBCDIC on input and from EBCDIC to ASCII on output. If a tape is specified as ANSI label or ANSI user label, then the OPTCD Q is automatically assumed.

For more information on reading and writing records, see Reading and Writing CMS Files.