CMACCP — Accept_Conversation
|
Where
conversation_ID (character output) is the conversation identifier assigned to the conversation. CPI Communications supplies and maintains the conversation_ID. When the return_code is set equal to CM_OK, the value returned in this parameter is used by the program on all subsequent statements issued for this conversation.
return_code (numeric output) specifies the result of the statement execution.
log_byte is a 1-byte string constant or a string expression that specifies a byte of user data to be associated with this CPI-C statement during logging. log_byte is also associated with the FMH-5 data received when a CMACCP successfully completes. The log_byte remains active until another CPI-C statement is issued. This byte gives users of the Response Time Utility a way to identify transactions from transmitted or received data when gathering statistics by the various user-defined "log_byte" categories. Only the first character or first two hexadecimal digits of the string expression are used. The default log_byte is X'00'.
Function
A program uses the CMACCP statement to simulate the CPI-C CMACCP call, which is usedto accept an incoming conversation. Like CMINIT, the CMACCPstatement initializes values for various conversation characteristics. The difference between the two statements is that the program that will later allocate the conversation issues the CMINIT statement, and the partner program that will accept the conversation after it is allocated issues the CMACCP statement.
For more information on CMACCP and its parameters, refer to the Accept_Conversation (CMACCP) call description in the “Call Reference” chapter of Systems Application Architecture Common Programming Interface Communications Reference.