CODEPAGE statement

Use the CODEPAGE parameter statement to specify ASCII-EBCDIC translation tables for linemode connections.

Telnet is initialized to use the ISO859-1 code page for ASCII and the IBM-1047 code page for EBCDIC.

CODEPAGE can be coded in TELNETGLOBALS, TELNETPARMS, or PARMSGROUP. See Rules for Telnet parameter statements and security parameters for more information about the hierarchy of parameter values. If there is an error in the syntax, a default code page of ISO8859-1 is used for ASCII and the language environment code page taken from locale information is used as the EBCDIC code page. If the EBCDIC code page is in error, a default code page of IBM-1047 is used for EBCDIC.

If TNSTD is specified as either parameter, TNSTD is used for both. The Telnet table is based on the ISO08859-1/IBM-1047 translation tables with the following exceptions:
 EBCDIC           ASCII                             
 x'0D25' -----> x'0D0085' using ISO8859-1/IBM-1047  
 x'0D25' -----> x'0D0A'   using internal tables  
 x'15'   <----  x'0A'     using ISO8859-1/IBM-1047 
 x'25'   <----  x'0A'     using internal tables  

Syntax

Read syntax diagramSkip visual syntax diagram
>>-+---------------------------------+-------------------------><
   '-CODEPAGE--+-TNSTD-+--+-TNSTD--+-'   
               '-ascii-'  '-ebcdic-'     

Parameters

ascii
The ASCII code page name. If TNSTD is specified, the TELNET-created translation table is used.
ebcdic
The EBCDIC code page name. If TNSTD is specified, the TELNET-created translation table is used.