TN3270e Server Manual

ITI Communication Protocol
TN3270e Server Manual422923-003
6-9
SETMODE function 144 Procedure
SETMODE function 144 Procedure
The SETMODE function 144 procedure is used in a SNAX environment to find the
single-byte character set and double-byte character set (if any) defined for the logical
unit (LU). In an TN3270e server environment, SETMODE function 144 returns hard-
coded values for the Katakana (single-byte) and Kanji (double-byte) character set
codes. If the -k command line option is not selected, the single-byte character set code
returned is 9 for EBCDIC. The double-byte character set code is 0, indicating no
double-byte character set is used. If the -k option is selected, the single-byte character
set code returned is 14 for Katakana EBCDIC. The double-byte character set code is 3
for IBM MIXED.
SETMODE function 144 also returns a value indicating the IBM device type. The
TN3270e server does not hard-code this value. The IBM device type code returned
depends on which IBM terminal emulation is selected for the window during Telnet
terminal type negotiation. If the -k option is selected, a value of 2 is returned, indicating
that the terminal is not a 3277 or 3276.
filenumber
INT:value
is the file to receive the SETMODE function.
144
INT:value
is the SETMODE function for obtaining the character set.
last-params
INT .ref:2
is a value that must be provided. It is used to contain output parameters.
last-params [0].<0>
always contains a 1 indicating that the TN3270e server does ASCII/EBCDIC
translation.
CALL SETMODE (filenumber, 144,,, last-params);