GET_TP_PROPERTIES
The GET_TP_PROPERTIES verb returns attributes of the TP and the current transaction.
The following structure describes the verb control block used by the GET_TP_PROPERTIES verb.
struct get_tp_properties {
unsigned short opcode;
unsigned char opext;
unsigned char reserv2;
unsigned short primary_rc;
unsigned long secondary_rc;
unsigned char tp_id[8];
unsigned char tp_name[64];
unsigned char lu_alias[8];
unsigned char luw_id[26];
unsigned char fqlu_name[17];
unsigned char reserve3[10];
unsigned char user_id[10];
unsigned char prot_luw_id[26];
unsigned char pwd[10];
};
Members
-
opcode
-
Supplied parameter. Specifies the verb operation code, AP_GET_TP_PROPERTIES.
-
opext
-
Supplied parameter. Specifies the verb operation extension. If the AP_EXTD_VCB bit is set, this indicates that the get_tp_properties structure includes the prot_luw_id member used for Sync Point support. Otherwise the verb control block ends immediately after the user_id member.
-
primary_rc
-
Returned parameter. Specifies the primary return code set by APPC at the completion of the verb. The valid return codes vary depending on the APPC verb issued. See Return Codes for valid error codes for this verb.
-
secondary_rc
-
Returned parameter. Specifies the secondary return code set by APPC at the completion of the verb. The valid return codes vary depending on the APPC verb issued. See Return Codes for valid error codes for this verb.
-
tp_id
-
Supplied parameter. Identifies the local TP. The value of this parameter was returned by TP_STARTED in the invoking TP or by RECEIVE_ALLOCATE in the invoked TP.
-
tp_name
-
Returned parameter. Supplies the TP name of the TP that issued the verb. The name is returned as a 64-byte EBCDIC string, padded on the right with EBCDIC spaces.
-
lu_alias
-
Returned parameter. Supplies the alias name assigned to the local LU. It is returned as an 8-byte ASCII string padded on the right with ASCII spaces.
-
luw_id
-
Returned parameter. Supplies the unprotected logical unit-of-work identifier for the transaction in which the TP is participating. Several TPs can be involved in a transaction. This identifier, which is assigned on behalf of the TP initiating the transaction, allows the conversation that makes up the transaction to be logically connected.
The luw_id can be represented as an luw_id_overlay structure with the following fields:
typedef struct luw_id_overlay {
unsigned char fqla_name_len;
unsigned char fqla_name[17];
nsigned char instance[6];
unsigned char sequence[2];
} LUW_ID_OVERLAY;
-
luw_id.fqla_name_len
-
A 1-byte length of the fully qualified LU name for the LU of the originating TP.
-
luw_id.fqla_name
-
The fully qualified name of the LU for the originating TP. The name is returned as a 17-byte EBCDIC string, consisting of the NETID, a period, and the LU name. If the length of the name is fewer than 17 bytes, the instance and sequence numbers follow immediately. (Note that because of this, you should not use the fields of the luw_id_overlay structure to access those values. These are provided for compatibility only).
-
luw_id.instance
-
A 6-byte string uniquely generated by the LU for the originating TP.
-
luw_id.sequence
-
A 2-byte number that indicates the segment of unit-of-work. (This is always set to 1, if Sync Point is not supported.)
If the luw_id length is fewer than 26 bytes, it is padded on the right with EBCDIC spaces.
-
fqlu_name
-
Returned parameter. Supplies the fully qualified name of the local LU. The name is returned as a 17-byte EBCDIC string, consisting of the NETID, a period, and the LU name. The name is padded on the right with EBCDIC spaces.
-
user_id
-
Supplied parameter. Indicates the user_id supplied by the initiating TP in the allocation request. The name is supplied as a 10-byte EBCDIC string, padded on the right with EBCDIC spaces.
-
prot_luw_id
-
Returned parameter. Contains the protected logical unit-of-work identifier for the transaction in which the TP is participating, if the conversation was allocated with synclevel Sync Point.
Several TPs can be involved in a transaction. This identifier, which is assigned on behalf of the TP initiating the transaction, allows the conversation that makes up the transaction to be logically connected.
The prot_luw_id can be represented as an luw_id_overlay structure with the following fields:
typedef struct luw_id_overlay {
unsigned char fqla_name_len;
unsigned char fqla_name[17];
nsigned char instance[6];
unsigned char sequence[2];
} LUW_ID_OVERLAY;
-
luw_id.fqla_name_len
-
A 1-byte length of the fully qualified LU name for the LU of the originating TP.
-
luw_id.fqla_name
-
The fully qualified name of the LU for the originating TP. The name is returned as a 17-byte EBCDIC string, consisting of the NETID, a period, and the LU name. If the length of the name is fewer than 17 bytes, the instance and sequence numbers follow immediately. (Note that because of this, you should not use the fields of the luw_id_overlay structure to access those values. These are provided for compatibility only).
-
luw_id.instance
-
A 6-byte string uniquely generated by the LU for the originating TP.
-
luw_id.sequence
-
A 2-byte number that indicates the segment of unit-of-work. (This is always set to 1, if Sync Point is not supported.)
If the prot_luw_id length is fewer than 26 bytes, it is padded on the right with EBCDIC spaces.
-
pwd
-
Supplied parameter. Contains the password of the user_id of the initiating TP in the allocation request. The password is supplied as a 10-byte EBCDIC string, padded on the right with EBCDIC spaces.
Return Codes
-
ap_ok
-
Primary return code; the verb executed successfully.
-
ap_parameter_check
-
Primary return code; the verb did not execute because of a parameter error.
-
ap_bad_tp_id
-
Secondary return code; the value of tp_id did not match a TP identifier assigned by APPC.
-
ap_comm_subsystem_abended
-
Primary return code; indicates one of the following conditions:
-
The node used by this conversation encountered an ABEND.
-
The connection between the TP and the PU 2.1 node has been broken (a LAN error).
-
The SnaBase at the TP's computer encountered an ABEND.
The system administrator should examine the error log to determine the reason for the ABEND.
-
ap_comm_subsystem_not_loaded
-
Primary return code; a required component could not be loaded or terminated while processing the verb. Thus, communication could not take place. Contact the system administrator for corrective action.
When this return code is used with ALLOCATE or MC_ALLOCATE, it can indicate that no communications subsystem could be found to support the local LU. (For example, the local LU alias specified with TP_STARTED is incorrect or has not been configured.) Note that if lu_alias or mode_name is fewer than eight characters, you must ensure that these fields are filled with spaces to the right. This error is returned if these parameters are not filled with spaces, since there is no node available that can satisfy the ALLOCATE or MC_ALLOCATE request.
When ALLOCATE or MC_ALLOCATE produces this return code for a Microsoft® SNA Server system configured with multiple nodes, there are two secondary return codes as follows:
-
0xF0000001
-
Secondary return code; no nodes have been started.
-
0xF0000002
-
Secondary return code; at least one node has been started, but the local LU (when TP_STARTED is issued) is not configured on any active nodes. The problem could be either of the following:
· The node with the local LU is not started. |
· The local LU is not configured. |
-
ap_invalid_verb_segment
-
Primary return code; the VCB extended beyond the end of the data segment.
-
ap_stack_too_small
-
Primary return code; the stack size of the application is too small to execute the verb. Increase the stack size of your application.
-
ap_tp_busy
-
Primary return code; the local TP has issued a call to APPC while APPC was processing another call for the same TP. This can occur if the local TP has multiple threads, and more than one thread is issuing APPC calls using the same tp_id.
-
ap_unexpected_dos_error
-
Primary return code; the operating system has returned an error to APPC while processing an APPC call from the local TP. The operating system return code is returned through the secondary_rc. It appears in Intel byte-swapped order. If the problem persists, consult the system administrator.
Remarks
This verb relates to the TP rather than a specification conversation, so the TP can issue the verb in any state. There is no state change.
The luw_id member contains fields for fqla_name_len (the length of the fully qualified LU name of the LU originating the TP), fqla_name (the fully qualified name of the LU originating the TP), instance (generated uniquely by the LU originating the TP), and sequence (always set to 1 and indicating the segment of unit-of-work).