Pathway/iTS TCP and Terminal Programming Guide

Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide426751-001
8-1
8
Processing Double-Byte Character Sets
As a Pathway application programmer, you can develop SCREEN COBOL program
units that use double-byte character sets for selected devices.
The TCP supports these devices with the aid of translation routines in the TCP user
library. The TCP uses the Shift-JIS format as its internal representation of double-byte
characters. When a message is output to a device, the translation routines convert Shift
JIS to double-byte characters suitable for display on the terminal or printer, inserting
shift-out/shift-in (SO/SI) characters if necessary. When a message is input to a device,
the process is reversed; the translation routines strip the SO/SI characters.
This section presents information about the following topics:
Device types on which Compaq NonStopPathway/iTS supports double-byte
character sets
How the character set is determined
Data-item considerations
Developing SCREEN COBOL programs for double-byte character sets
Example of Working-Storage Section and Screen Section for double-byte character
sets
Device Types
The TCP supports double-byte character sets on the following terminals or personal
computers running terminal emulators. To use SNA 3270 devices with double-byte
character sets, you must have the C11 version or a later version of the SNAX/XF
product installed.
Selected Japanese versions of 6530 terminal emulators
Selected Fujitsu 3270 terminals, terminal emulators, and printers
Selected IBM 3270 terminals, terminal emulators, and printers
To run SCREEN COBOL program units that use Kanji characters on IBM 3270
devices, the devices must support Start Field Extended (SFE) orders. To run
applications that use Katakana characters, IBM 3270 devices need support only Start
Field (SF) orders.
Defining fields with only double-byte characters on an IBM 3270-class device or
emulator requires the use of the field attribute DBC-Asia (attribute type X'43'). To
enter double-byte characters on IBM 3270 terminals, the operator must be able to
create shift-out/shift-in (SO/SI) characters.