Pathway/iTS TCP and Terminal Programming Guide
Processing Double-Byte Character Sets
Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide—426751-001
8-4
Developing SCREEN COBOL Programs for Double-
Byte Character Sets
:
:
PROCEDURE DIVISION.
:
:
MOVE WS-KANJI-DATA TO WS-NAME-1.
MOVE WS-BYTE-DATA(1) TO WS-UNDEFINED-DATA.
The receiving data in this example (WS-UNDEFINED-DATA) is undefined because an
individual byte of a double-byte character is meaningless.
Arrays defined by using a PIC N clause, rather than a PIC X clause, are referred to in
units of two bytes.
Developing SCREEN COBOL Programs for
Double-Byte Character Sets
Program units written in SCREEN COBOL have four divisions: the Identification
Division, the Environment Division, the Data Division, and the Procedure Division. In
developing Pathway applications for double-byte character sets, you define specific
attributes in the last three of these divisions.
Environment Division
The Configuration Section of the Environment Division declares the operating
environment of a SCREEN COBOL program. When you write Pathway applications
for double-byte character sets, you need to consider the following syntax in the
OBJECT-COMPUTER paragraph:
TERMINAL IS Statement
All 3270 class devices—both IBM and Fujitsu—are identified by the keyword IBM-
3270. All 6530 class devices are identified by the keyword T16-6530.
IBM 3270 devices use Start Field Extended (SFE) orders to support Kanji characters and
Start Field (SF) orders to support Katakana characters. Fujitsu 3270 devices use Start
Field (SF) orders for both Kanji and Katakana character sets.
OBJECT-COMPUTER. comment-word,
[ TERMINAL IS terminal-type [ , ] ]
[ CHARACTER-SET IS character-set-type ] .