The data structure kc_pterm_str is defined for the object type KC_PTERM. In the case of KC_GET_OBJECT, UTM returns the following information in kc_pterm_str:
The properties of clients and printers that were statically or dynamically added to the configuration of the application.
The properties of clients that are presently connected to the application via an LTERM pool or multiplex connection.
The properties and status of the connection to the corresponding client or printer.
Statistical information on the connection load and the demands on the application for the individual clients/printers.
Clients and printers can be dynamically created with KC_CREATE_OBJECT, deleted with KC_DELETE_OBJECT or modified with KC_MODIFY_OBJECT.
mod 1 | Data structure kc_pterm_str | see 2 |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
x(PD) |
| |
x(GPD) |
| |
x(GPD) |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
x(A) |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
X(GPD) |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
| |
- |
|
1 | Field contents can be modified with KC_MODIFY_OBJECT; see "obj_type=KC_PTERM". |
2 | The meaning of the fields is described on the pages indicated in this column. |
3 | UTM-internal field; the field contents is irrelevant and will not be discussed. |
The fields in the data structure have the following meanings:
pt_name
Contains the name of the client or printer. The client/printer is known to the transport system (BCAM, PCMX) under this (symbolic) name.
pronam
The name of the computer on which the client can be found or to which the printer is connected.
In UTM applications on BS2000 systems pronam always contains data. For an RSO printer pronam contains the value '*RSO'.
In UTM applications running on Unix, Linux or Windows systems pronam contains blanks for a local client or printer.
If the real computer name is longer than 8 characters:
The pronam field contains a symbolic local name assigned for this computer by the transport system.
If no connection was established yet, pronam contains blanks.
The complete name, up to 64 characters long, can be taken from the pronam_long field.
bcamappl
Name of the local UTM application via which the connection to the client/printer will be established.
For terminals and printers bcamappl always contains the name of the application that was specified for the KDCDEF generation in MAX APPLINAME.
For UPIC clients and TS applications bcamappl always (even if no connection is presently established) contains the application name assigned to the client when it was added to the configuration.
Only on BS2000 systems:
For clients that are connected to the application via a multiplex connection, bcamappl contains the application name assigned to the multiplex connection when it was added to the configuration as long as the connection is established.
ptype
The type of client or printer.
BS2000 systems
For clients/printers that are connected to a UTM application on a BS2000 system, either the partner type or the value '*ANY' or '*RSO' is returned. The partner types supported are listed in the following table:
ptype | Type of client/printer | termn field |
*ANY | The client was added to the configuration without an exact specification of its device type. In this case, UTM uses the device type of the client from the user service log when establishing the connection. Only then will it be decided if the partner type is supported or not. | If the terminal mnemonic was not explicitly specified during configuration, then the standard terminal mnemonic of the partner type is used when establishing the connection. |
T100 | Teletype T100 | C0 |
T1000 | Teletype T1000 | E1 |
T8103 | 8103 | FD |
T8110 | 8110 | C2 |
T8121V12 | Printer 8121 on 8112 | F7 |
T8122V12 | Printer 8122 on 8112 | F8 |
T8124 | Printer 8124 | FC |
T8151 | DSS 8151 | F1 |
T8152 | DSS 8152 | F2 |
T8160 | DSS 8160 | F4 |
T8162 | DSS 8162 | F6 |
T8167 | DSS 8167 | FB |
T9748 1 | DSS 9748 | FE |
T9749 | DSS 9749 | FE |
T9750 1 | DSS 9750 | FE |
T9751 | DSS 9751 | FE |
T9752 | DSS 9752 | FF |
T9753 | DSS 9753 | FE |
T9754 | DSS 9754 | FI |
T9755 2 | DSS 9755 | FG |
T97562 | DSS 9756 | FG |
T9763 | DSS 9763 | FH |
T9770 | DSS 9770 | FK |
T9770R | DSS 9770R | FK |
T3270 | DSS 3270 (IBM) | FL |
THCTX28 | DSS X28 (TELETYPE) | C5 |
TVDTX28 | DSS X28 (VIDEO) | C6 |
TPT80 | Data station PT80 | C4 |
T9001 | 9001 printer | C7 |
T9002 | 9002 printer | FA |
T9003 | 9003 printer | F9 |
T9004 | 9004 printer | FD |
T9001-3 | 9001-3 printer | CA |
T9001-89 | 9001-893 printer | CB |
T9011-18 | 9011-18 printer | CC |
T9011-19 | 9011-19 printer | CD |
T9012 | 9012 printer | CE |
T9013 | 9013 printer | C9 |
T9021 | 9021 printer | CH |
T9022 | 9022 printer | CF |
T3287 | 3287 printer | CG |
*RSO | Printer supported by RSO. | RS |
THOST | Intelligent terminal | A3 |
APPLI | Transport system application that is not a socket application (e.g. : DCAM, CMX or UTM application) | A1 |
UPIC-R | UPIC client | A5 |
SOCKET | USP-Socket application | A7 |
SOCKET | HTTP Client | A8 |
SOCKET | Secure USP-Socket application | A9 |
SOCKET | HTTPS Client | AA |
1 | T9748 and T9750 designate the same terminal type. |
2 | T9755 and T9756 designate the same terminal type. |
The VTSU versions that support the individual terminals can be obtained from the DCAM, FHS or TIAM Manual.
If a terminal is not supported by VTSU, then UTM rejects a request for connection from this terminal. UTM triggers the UTM messages K064 and K107.
Unix, Linux and Windows systems
In a UTM application on Unix, Linux or Windows systems, ptype can contain the following values.
ptype | Type of client/printer | termn field |
TTY | The client is a terminal. | F1 |
PRINTER | ptype ='PRINTER' is only relevant on Unix and Linux system and is not allowed under openUTM on Windows systems. | F2 |
pt_name specifies the name of a printer to which the spool on Unix or Linux systems will print. | ||
ptype_fotyp and ptype_class either contains blanks or the appropriate printer type or printer group of pt_name. | ||
APPLI | The client is a TS application that does not use the socket interface (e.g. UTM, CMX, or DCAM application). | A1 |
UPIC-L | The client is a local Client application with the UPIC carrier system. | A5 |
UPIC-R | The client is a remote Client application with the UPIC carrier system. | A5 |
SOCKET | USP-Socket application | A7 |
SOCKET | HTTP Client | A8 |
SOCKET | Secure USP-Socket application | A9 |
SOCKET | HTTPS Client | AA |
lterm | ||
Name of the LTERM partner assigned to this client/printer. | ||
auto_connect | ||
Specifies if the connection to the client/printer will be automatically established at the start of the application: | ||
'Y' | When starting the application, UTM attempts to establish the connection automatically if the client/printer is available when the local application is started. | |
'N' | No automatic establishing of the connection when starting. | |
state | ||
Specifies if the client or printer is currently disabled. | ||
'Y' | The client/printer is not disabled, i.e. as long as the LTERM partner assigned to this client/printer is not disabled, connections between the client/printer and the local application can be established, or there are already established connections. | |
'N' | The client/printer is disabled. No connections between the client/printer and the local application can be established. | |
cid (control identification) | ||
Only contains data if information about a printer is requested. cid contains the printer ID (CID) as long as a CID was assigned to the printer when it was added to the configuration. The CID has the following function:
| ||
map | ||
Specifies whether UTM performs a code conversion (ASCII <-> EBCDIC) for user messages without any formatting flags which are exchanged between the partner applications. User messages are passed in the message area on the KDCS interface in the message handling calls (MPUT/FPUT/DPUT). | ||
'U' | (USER) | |
'1', '2', '3', '4' (SYS1 | SYS2 | SYS3 | SYS4) | ||
is only permitted for the following TS applications:
If you specify one of these values, UTM converts the user messages according to the code tables provided for the code conversion, see the "Code conversion" section in the openUTM manual "Generating Applications", i.e.:
openUTM assumes that the messages contain only printable characters. For more information on code conversion, please refer to the openUTM manual „Programming Applications with KDCS”; keyword „code conversion". | ||
termn (terminal mnemonic) | ||
Contains the code for the type of communication partner. UTM KDCS program units provide the code in the KCTERMN field of the communication area header. | ||
protocol (only on BS2000 systems) | ||
Specifies if the NEABT user protocol service ("station protocol") will be used on connections between the UTM application and the client/printer. | ||
'N' | The user protocol service will not be used between the UTM application and the client/printer. protocol='N' will always be output for:
Clients for which protocol='N' is specified cannot connect to the application over a multiplex connection. | |
'S' | (STATION) UTM uses the user protocol service NEABT, among others, to determine the type (ptype) of a client or printer if the type was not explicitly specified when the client/printer was added to the configuration (added with ptype='*ANY'). | |
usage_type (only on BS2000 systems) | ||
Specifies if the communication partner in pt_name is a dialog partner or purely an output medium. | ||
'D' | The client is a dialog partner. The client as well as the local application can send messages on the connections between the client and the local application. | |
'O' | The client/printer is used purely as an output medium. Messages can only be sent from the application to the client/printer. usage_type='O' is always output for printers. | |
listener_port | ||
listener_port contains the port number of the partner application in the remote system in TCP/IP connections. In the case of KC_GET_OBJECT, the port number defined when the client was generated is returned. If listener_port = '0', then no listener port number was generated. | ||
t_prot | ||
Contains the address format that the client uses to sign on to the transport system. The following address formats are possible: | ||
'T' | native TCP/IP transport protocol TCP-IP for communication via the socket interface (SOCKET) | |
Only on Unix, Linux and Windows systems: | ||
'R' | RFC1006, ISO transport protocol class 0 using TCP/IP and the convergence protocol RFC1006. | |
If the client was not assigned an address format when added to the configuration, then the t_prot field contains a blank. | ||
tsel_format (only on Unix, Linux and Windows systems) | ||
Contains the format indicator of the T-selector in the address of the client. The following format indicators may occur: | ||
'T' | TRANSDATA format | |
'E' | EBCDIC character format | |
'A' | ASCII character format | |
The meanings of the address formats are described in the "PCMX documentation" (openUTM documentation). If the client was not assigned a format indicator when added to the configuration, then the tsel_format field contains a blank. | ||
connect_mode | ||
Specifies the current status of the connection to the client: | ||
'Y' | The connection is established. | |
'W' | UTM is currently attempting to establish the connection (waiting for connection). | |
'N' | The connection is not established. | |
In UTM applications on BS2000 systems connect_mode can also contain the following values for clients/printers that are connected to the application via a multiplex connection (mux = 'Y'): | ||
'T' | (timer) | |
'E' | (expired) | |
pool | ||
Specifies if the client is connected to the application via an LTERM pool. | ||
'Y' | The client is connected to the application via an LTERM pool. | |
'N' | The client is not connected to the application via an LTERM pool. | |
mux (only on BS2000 systems) | ||
Specifies if the client is connected to the application via a multiplex connection. | ||
'Y' | The client is connected to the application via a multiplex connection. | |
'N' | The client is not connected to the application via a multiplex connection. | |
contime_min | ||
Specifies how long the connection to the client/printer has already existed. The length of time is specified in minutes. | ||
letters | ||
Contains the number of input and output messages for the client/printer since the last start of the local application. | ||
conbad | ||
Specifies how often the connection to the client/printer has been lost since the last start of the application. | ||
deleted | ||
Specifies whether or not the client/printer has been deleted from the configuration. | ||
'Y' | The client/printer has been deleted. The name, however, is disabled, i.e. no new client/printer can be added using this name. | |
'N' | The client/printer has not been deleted. | |
idletime | ||
Only relevant for dialog partners. idletime contains the time in seconds, which UTM waits for a response from a client, after a transaction is terminated or after sign-off. If the time is exceeded the connection to the client is closed down. If the client is a terminal, the message K021 was issued before connection close-down. 0 means indefinite wait. | ||
encryption_level | ||
Only relevant for UPIC clients and, on BS2000 systems, with some terminal emulations.
The following values are possible: | ||
'N' | (NONE) | |
'3' | (LEVEL 3) | |
'4' | (LEVEL 4) | |
'5' | (LEVEL 5) only for Unix, Linux and Windows systems | |
'T' | (TRUSTED) | |
ip_addr | ||
Returns the partner IP address used by UTM for this connection if the address is an IPv4 address. On BS2000 systems, IP adresses are output only for partners where ptype='SOCKET' , An IPv6 address is returned in the ip_addr_v6 field (see "kc_pterm_str - Clients and printers") In ip_addr, UTM returns the IP address of the client computer. The address is stored in the object table of the application. UTM uses this address to establish the connection to the client. UTM reads the IP address from the name service with the aid of the generated processor name (pronam) when the application is started. If the object table does not contain an IPv4 address for the client, e.g. because the client does not use the appropriate protocol, UTM returns blanks in ip_addr. | ||
curr_encryption | ||
Only relevant for UPIC clients and on BS2000 systems for some terminal emulations. | ||
'N' | (NONE) | |
'3' | (LEVEL 3) | |
'4' | (LEVEL 4) | |
'5' | (LEVEL 5) (only for Unix, Linux and Windows Systems) | |
' ' | (Blank)There is currently no connection to this client. | |
usp_hdr | ||
This is only relevant for socket partners. | ||
'A' | UTM creates a UTM socket protocol header for all output messages (dialog, asynchronous, K messages) and precedes the message with it. | |
'M' | UTM creates a UTM socket protocol header for the output of K messages and precedes the message with it. | |
'N' | UTM does not create a UTM socket protocol header for any output message. | |
ip_addr_v6 | ||
Returns the partner IP address used by UTM for this connection if the address is an IPv6 address or an IPv4 address embedded in an IPv6 format. On BS2000 systems, IP adresses are output only for partners where ptype='SOCKET' , An IPv6 address is returned in the ip_addr_v6 field (see "kc_pterm_str - Clients and printers") UTM returns the IP address of the client computer stored in the object table of the application in ip_addr_v6. UTM uses this address to establish the connection to the client. UTM reads the IP address from the Name Service using the generated computer name (pronam) when the application is started. If there is no IPv6 address in the object tables for the client, UTM returns blanks in ip_addr_v6. | ||
ip_v | ||
Specifies whether the IP address used by UTM for this connection is an IPv4 or an IPv6 address: | ||
'V4' | IPv4 Address. | |
'V6' | IPv6 address or IPv4 address embedded in IPv6 format. | |
If no IP address can be returned, openUTM returns blanks. | ||
pronam_long | ||
Name of the computer on which the client or the printer is located. In UTM applications on BS2000 systems, pronam_long is always filled. The computer name in pronam_long is identical to the name specified during BCAM generation or in the RTF file for this computer. For an RSO printer pronam_long contains the value '*RSO'. In UTM applications on Unix, Linux and Windows systems, pronam_long contains blanks for a local client or a printer. |