Set_TP_Name

The Set_TP_Name call (function name cmstpn) is issued by the invoking program to specify the partner (invokable) program name. This call overrides the partner program name derived from the side information when the Initialize_Conversation call was issued. This call cannot be issued after the Allocate call has been issued. Issuing this call has no effect on the side information itself.

CM_ENTRY Set_TP_Name(
  unsigned char FAR *conversation_ID,  
  unsigned char FAR *TP_name,          
  CM_INT32 FAR *TP_name_length,        
  CM_INT32 FAR *return_code            
);
 

Parameters

conversation_ID
Supplied parameter. Specifies the identifier for the conversation. The value of this parameter was returned by Initialize_Conversation.
TP_name
Supplied parameter. Specifies the starting address of the partner program name. The program name can contain up to 64 ASCII characters. The allowed characters are:

You cannot use Set_TP_Name to specify the name of an SNA service TP. You can, however, use Set_CPIC_Side_Information to do this.

Double-byte character sets, such as Kanji, are not supported.

TP_name_length
Supplied parameter. Specifies the length of the partner program name. The range is from 1 through 64.
return_code
The code returned from this call. The valid return codes are listed below.

Return Codes

cm_ok
Primary return code; the call executed successfully.
cm_program_state_check
Primary return code; the conversation is not in INITIALIZE state.
cm_program_parameter_check
Primary return code; one of the following occurred:
cm_product_specific_error
Primary return code; a product-specific error occurred and has been logged in the product's error log.

State Changes

The conversation must be in INITIALIZE state.

There is no state change.