The TP_STARTED verb is issued by the invoking TP, and notifies APPC that the TP is starting.
For the Microsoft® Windows® version 3.x system, it is recommended that you use the WinAsyncAPPC function rather than the blocking version of this call.
The following structure describes the verb control block used by the TP_STARTED verb.
struct tp_started {
unsigned short opcode;
unsigned char opext;
unsigned char reserv2;
unsigned short primary_rc;
unsigned long secondary_rc;
unsigned char lu_alias[8];
unsigned char tp_id[8];
unsigned char tp_name[64];
unsigned char syncpoint_rqd;
};
The name must match an LU alias established during configuration. APPC checks the LU alias against the current SNA Server configuration file. Due to the client/server architecture used by SNA Server, however, this parameter is not validated until an ALLOCATE or MC_ALLOCATE is performed.
This parameter is an 8-byte ASCII character string. It can consist of the following ASCII characters:
The first character of this string cannot be a space.
If the value of this parameter is fewer than eight bytes in length, pad it on the right with ASCII spaces (0x20).
To use an LU from the default LU pool, set this field to eight hexadecimal zeros. For more information, see Default LUs.
Under the SNA Server implementation of APPC, this parameter is ignored when issued by TP_STARTED. However, this parameter is required if the program runs under the IBM ES for OS/2 version 1.0 implementation of APPC.
This parameter is a 64-byte EBCDIC character string and is case-sensitive. The tp_name parameter can consist of the following EDCDIC characters:
If the TP name is fewer than 64 bytes in length, use EBCDIC spaces (0x40) to pad it on the right.
The SNA convention for a service TP name is up to four characters. The first character is a hexadecimal byte between 0x00 and 0x3F.
The system administrator should examine the error log to determine the reason for the ABEND.
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 an SNA Server system configured with multiple nodes, there are two secondary return codes as follows:
· The node with the local LU is not started. |
· The local LU is not configured. |
In response to TP_STARTED, APPC generates a TP identifier for the invoking TP. This identifier is a required parameter for subsequent APPC verbs issued by the invoking TP.
This must be the first APPC verb issued by the invoking TP. Consequently, no prior APPC state exists.
If the verb executes successfully (primary_rc is ap_ok), the state changes to RESET.