Pathway/iTS SCREEN COBOL Reference Manual (H06.10+, J06.03+)

Environment Division
HP NonStop Pathway/iTS SCREEN COBOL Reference Manual426750-003
4-5
OBJECT-COMPUTER Paragraph
TERMINAL IS clause. The only language that can be declared for IBM 3270
terminals is KANJI-KATAKANA.
If this clause is omitted for a program running on an IBM 3270 or a 6540 terminal,
USASCII is used. If this clause is omitted for a program compiled for and running
on a 6530 terminal, USASCII is used until the first DISPLAY BASE statement is
run. After the first DISPLAY BASE, the character set specified in the terminal's
configuration menu is used.
KANJI-KATAKANA
indicates that the program unit source file might contain double-byte characters
in data fields or literals and instructs the compiler to allow the PIC N picture
clause.
You must be aware that depending on the terminal, support for 1-byte
Katakana characters, 2-byte Katakana characters, and lowercase and
uppercase alphabetic characters varies.
On 6530 terminals, both 1-byte and 2-byte Katakana character sets, as
well as uppercase and lowercase alphabetic characters, are supported if
CHARACTER-SET IS KANJI-KATAKANA is specified.
On IBM 3270 terminals, either lowercase alphabetic characters or 1-byte
Katakana characters are supported.
°
On IBM 3270 terminals configured to use both lowercase and
uppercase alphabetic characters, a program unit cannot use 1-byte
Katakana characters.
°
On IBM 3270 terminals configured to use 1-byte Katakana characters,
the TCP upshifts lowercase alphabetic characters in the outbound data
stream. Such terminals can run applications with both lowercase and
uppercase alphabetic characters as well as 1-byte Katakana
characters, but inbound data does not contain lowercase alphabetic
characters that the terminal does not generate when thus configured.
If the CHARACTER-SET IS clause is included and the character set type differs from
the current setting in the terminal, or the terminal setting is unknown, the terminal is
signaled the character set type at the execution of the first DISPLAY BASE statement
in a program unit. After the program unit completes execution, the terminal is reset to
its original character set.
The programmatic support of national-use characters affects the following areas:
Field-characteristic clause UPSHIFT—Lowercase national-use characters are
upshifted to their uppercase equivalents.
Note. Applications that use 1-byte alphabetic characters only can run on any terminal for
which the CHARACTER-SET IS KANJI-KATAKANA clause is valid. Applications that use
1-byte alphabetic characters as well as 1-byte Katakana characters can run only on a 6530
terminal or on an IBM 3270 terminal specifically configured to support EBCDIC/Katakana.