### X 1.1.1.2 COBOL Words with Multi-Byte Characters

X DBCS/EUC characters must conform to the normal COBOL rules for
X user-defined words. The following are the rules for forming user-defined
X words from multi-byte characters:

X Table 2. Rules for Forming User-Defined Words from Multi-Byte Characters
X Rule | X OS/390 and VM | X AIX, OS/2, and Windows
--- | --- | ---
X Use of X Shift-Out X Shift-In X Characters | X DBCS user-defined words X begin with a shift-out X character and end with a X shift-in character. | X Not required X X X
X Value Range X X X | X DBCS user-defined words can X contain characters whose X values range from X'41' to X X'FE' for both bytes. | X Valid value ranges for X multi-byte characters X depend on the specific code X page being used.
X Containing X Characters X X X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X DBCS user-defined words can
X contain only double-byte
X characters, and must contain
X at least one non-EBCDIC
X character. (Double-byte
X EBCDIC characters are
X represented by X'42' in the
X first byte.) Single-byte
X characters are not allowed
X in a DBCS word.
X DBCS user-defined words can
X contain both double-byte
X EBCDIC and double-byte non
X EBCDIC characters. The only
X double-byte EBCDIC
X characters allowed are: A -
X Z, a - z, 0 - 9, and the
X hyphen (-). The hyphen
X cannot appear as the first
X or last character.
X A user-defined word can
X consist of both single-byte
X or multiple-byte (including
X double-byte) characters.
X If a character exists in
X both single-byte and
X multiple-byte forms, its
X single-byte and multi-byte
X representations are not
X equivalent.
X
X
X
X
X
X
X
X
X
X
X Continuation X Rules | X Words cannot be continued X across lines. | X Words cannot be continued X across lines.
X Uppercase / X Lowercase X Letters | X Equivalent X X | X Not equivalent X X
X Maximum X Length X X X
X
X
X
X
X 14 characters
X
X
X
X
X
X
X
X
X 15 characters for a DBCS
X code page
X For AIX only:
X ° 7 characters for EUC
X code page IBM_eucTW
X ° 10 characters for EUC
X code pages, IBM_eucJP,
X IBM_eucKR, and
X IBM_eucCN

© Copyright IBM Corp. 1991, 1998

###### IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.

Return to library: z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary: IBM terminology
Publications: How to order publications
Readers: Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management: Download IBM Softcopy Librarian
Contacts: Contact z/OS

Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.