TN3270 Server Manual

ITI Communication Protocol
TN3270 Server Manual424097-001
6-19
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 a TN3270 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. TN3270
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 TN3270 Server does ASCII/EBCDIC
translation.
last-params [0].<1:7>
IBM device type can be 0 through 3, inclusive.
0: Printer (PRT protocol; not supported)
1: IBM-3277
2: Not 3277 or 3276 (this value is always returned when the -k option is set)
3: IBM-3276
CALL SETMODE (filenumber, 144,,, last-params);