16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Related Information<br />

chmod, chown, ls<br />

chcp — Set or query ASCII/EBCDIC code pages for the terminal<br />

Format<br />

Description<br />

Options<br />

chcp [–r | –q]<br />

chcp [–s] [–a ASCII_cp] [–e EBCDIC_cp]<br />

chcp sets, resets, or queries the current ASCII/EBCDIC code conversion in effect<br />

for the controlling terminal. Use it when the terminal requires ASCII data and the<br />

shell application uses EBCDIC. Do not use chcp if you are logged on through the<br />

TSO/E OMVS command. The _BPX_TERMPATH environment variable enables<br />

shell scripts to tell if the user logged on from TSO, rather from rlogin or telnet.<br />

–a ASCII_cp<br />

The name of the ASCII code page used by the terminal. EBCDIC data from<br />

the shell application is converted to this ASCII code page before it is sent<br />

out to the terminal. Data from the terminal is converted from this ASCII<br />

code page to EBCDIC before the application receives it.<br />

The name of the ASCII code page is case-sensitive.<br />

For a list of code pages supported by the shell, see z/<strong>OS</strong> XL C/C++<br />

Programming Guide.<br />

–e EBCDIC_cp<br />

The name of the EBCDIC code page used for this session. EBCDIC data<br />

from the shell application is converted from this EBCDIC code page to<br />

ASCII before it is sent out to the terminal. ASCII data from the terminal is<br />

converted to this EBCDIC code page before the application receives it.<br />

The name of the EBCDIC code page is case-sensitive.<br />

For a list of code pages supported by the z/<strong>OS</strong> shell, see z/<strong>OS</strong> XL C/C++<br />

Programming Guide.<br />

–q Queries the current ASCII and EBCDIC code pages for this terminal. The<br />

results are written to stdout. You cannot use any other options if you use<br />

the –q option.<br />

–r Resets the ASCII/EBCDIC conversion for the terminal to the default code<br />

pages. The default ASCII code page is ISO8859-1, and the default EBCDIC<br />

code page is IBM-1047.<br />

You cannot use –r with any other options.<br />

–s Specifies that the ASCII/EBCDIC conversion for the terminal is to use the<br />

code pages specified by the –a and –e options. You cannot use –s with any<br />

other options other than –a or –e. Either –a or e (or both) must also be<br />

specified if –s is used.<br />

The chcp query output is written to stdout. For example, if you enter<br />

chcp –q<br />

chaudit<br />

Chapter 2. Shell command descriptions 119

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!