SNAX/APN Application Programming Manual

The CRT Interface
SNAX/APN Application Programming Manual420111-001
2-14
Setting CDI Options (SETMODE Function 144)
last-params
allows you to view the most recent option setting. Because the option can also be
set using SCF or SPI, the returned value indicates the setting before this call takes
effect.
Setting CDI Options (SETMODE Function 144)
For protocol CRT, ITI, CREATOR and SNALU, SNAX/APN accepts the SETMODE
144 procedure call and returns information about the mapping for the current APPL
object.
* For PROTOCOL SNALU, this field returns -1. SNAX/APN has no control over the
number of transitions.
Setting CDI Options (SETMODE Function 163)
SETMODE function 163 sets one of the three CDI modes. This call applies only to the
application, not the file (representing the device) that is opened. Refer to the section on
CALL SETMODE (filenumber, 144, param1, param2, last-params)
param1 param2 = must be ommitted
last-params Word 0
[0].<0> = CHARACTERSET parameter from APPL
0 : no translation
1 : SNAX/APN translates using the map
specified in CHARMAPNAME
[0].<1:7> = IBM device type
-1 : Device is unknown
2 : Device is queryable
3 : Device not queryable
[0].<8:15> = value of ALLOWEDMIX
45 or 0 : *
last-params Word 1
[1].<0:7> = The single byte map number for the single
byte portion of a multi-byte map.
[1] <8:15> 0 : The map does not contain GETMODE
information
9 : EBCDIC
14 : KATAKANA
0 : The map does not contain GETMODE
information
2 : IBMKANJI
3 : IBMMIXED
5 : JEFKANJI
13 : IBMADMIX