TN3270 Server Manual
CRT Communication Protocol
TN3270 Server Manual—424097-001
5-9
SNAX/XF CRT SETMODE Procedure
A SETMODE function 144 procedure also returns a value indicating the IBM device
type. 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
terminal.
filenumber
INT:value
is the number of the open file to receive the SETMODE function.
144
INT:value
is the SETMODE function for obtaining the character set.
last-params
INT .ref:2
is an integer array that must be provided. It is used to contain output parameters.
last-params [0].<0>
always contains a 1, indicating that the Guardian 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
3 : IBM-3276
last-params [0].<8:15>
is the value of ALLOWEDMIX LU attribute. The Guardian TN3270 Server
always returns a 0.
last-params [1].<0:7>
is the logical unit (LU) single-byte character set. If the -k option is not selected,
the Guardian TN3270 Server returns a 9 by default, indicating EBCDIC. If
the -k option is selected, the Guardian TN3270 Server returns a 14, indicating
Katakana EBCDIC.
CALL SETMODE (filenumber, 144,,, last-params);