COBOL Manual for TNS and TNS/R Programs

Environment Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
6-8
OBJECT-COMPUTER Paragraph
CHARACTER-SET Clause
The CHARACTER-SET clause is an HP COBOL extension that enables you to specify
the national character set defining the ALPHABETIC data class.
character-set-type
is a keyword in the left column of this table, representing an alphabet in the right
column:
In COBOL, this clause affects only the ALPHABETIC-UPPER, ALPHABETIC-LOWER,
and ALPHABETIC tests. In SCREEN COBOL, the CHARACTER-SET IS clause has
some additional semantics, including terminal configuration (see the Pathway/TS
SCREEN COBOL Reference Manual).
The CHARACTER-SET clause does not define the character sets used for national
literals or national data items.
The default character set is USASCII. The UK character set designator is handled as a
comment, because it contains no extensions to the ALPHABETIC class. When the
character set is USASCII (or UK), the ALPHABETIC class test work as Table 6-1
shows.
character-set-type Alphabets
DANSK-NORSK Danish, Norwegian
DEUTSCH German
ESPANOL Spanish
FRANCAIS-AZ French (AZERTY keyboard)
FRANCAIS-QW French (QWERTY keyboard)
SVENSK-SUOMI Swedish, Finnish
UK United Kingdom
USASCII United States ASCII
Table 6-1. How Alphabetic Class Tests Work With Default Character Set
Test Verifies that each character is
ALPHABETIC A space or a letter between A and Z or between a and z
ALPHABETIC-UPPER A space or a letter between A and Z
ALPHABETIC-LOWER A space or a letter between a and z
character-set-type
CHARACTER-SET
IS
VST021.vsd