Where You Can Use DBCS Characters in a COBOL Program
In general, you can use mixed literals wherever nonnumeric literals are
allowed. Literals for the following, however, cannot include double-byte characters:
- ALPHABET-name clause
- CURRENCY SIGN clause
- ASSIGN clause
- CLASS-name clause
- CALL statement
- CANCEL statement.
You can use DBCS literals whenever nonnumeric literals are allowed except
as a literal in the following:
- ALPHABET clause
- ASSIGN clause
- CLASS clause
- CURRENCY SIGN clause
- LINKAGE clause
- CALL statement program-id
- CANCEL statement
- END PROGRAM statement
- PADDING CHARACTER clause
- PROGRAM-ID paragraph
- ACQUIRE statement
- DROP statement
- As the text-name in a COPY statement
- As the library-name in a COPY statement.
Note:
You can use DBCS characters for COBOL words or names.
See the ILE COBOL for AS/400 Reference for information on rules for formatting COBOL
system-names, reserved words, and user-defined words such as data names and
file names.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.