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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using the doublebyte character set (DBCS)<br />

z/<strong>OS</strong> <strong>UNIX</strong> supports the doublebyte character set (DBCS). It also supports a DBCS<br />

locale. The name of the IBM-supplied DBCS locale is Ja_JP. This locale uses the<br />

IBM-939 coded-character set, which is a doublebyte character set.<br />

This topic discusses the following:<br />

v Requirements for using DBCS<br />

v When you must use SBCS characters and not DBCS characters<br />

v When you can use DBCS characters<br />

v Byte sequences that are not permitted in DBCS strings<br />

v Displaying DBCS characters<br />

v Switching locales<br />

v Problems with DBCS filenames containing DBCS characters<br />

Requirements for using DBCS<br />

If you plan to use DBCS interactively, you must work at a terminal that supports<br />

DBCS, such as a PS/55, and follow the procedures for the terminal emulator being<br />

used. It is not necessary, however, to be at a terminal that supports DBCS if you<br />

just want to use files that contain DBCS data.<br />

To use DBCS, you need to do the following:<br />

1. Specify special logmodes to access TSO/E and VTAM ®<br />

support for DBCS.<br />

Typically, the system programmer has already set these up and provided you<br />

with instructions.<br />

2. Issue the TSO/E PROFILE PLANGUAGE(JPN) command, if required, to receive<br />

TSO/E messages in the Japanese language.<br />

3. On the OMVS command, use the null character conversion table (the default)<br />

for character conversion. You do not need to specify the CONVERT operand on<br />

the OCOPY, OGETX, OPUT, and OPUTX commands.<br />

4. Access the shell using the OMVS command with the DBCS operand (which is<br />

the default setting).<br />

You can also access the shell by using the rlogin program. The default<br />

conversion is from ISO8859-1 to IBM-1047; users can change their conversion<br />

to use different code pages by using the chcp command.<br />

5. Define singlebyte escape characters for typing escape sequences.<br />

6. Enable the shell and utilities for the DBCS locale, including having all shell and<br />

utility messages in Japanese, by entering the these commands:<br />

export LC_ALL=Ja_JP<br />

exec sh<br />

To receive shell and utility messages in Japanese, but not put your terminal in<br />

DBCS mode, enter the this command:<br />

export LC_MESSAGES=Ja_JP<br />

When you must use SBCS and not DBCS characters<br />

You must use the singlebyte character set (SBCS) when specifying the following:<br />

v User names.<br />

v <strong>System</strong>, device, group, and terminal names.<br />

v User names and passwords.<br />

v Shell command-line options.<br />

v Shell commands and their operands.<br />

Chapter 1. Introduction to shell commands and DBCS 7

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

Saved successfully!

Ooh no, something went wrong!