SNAX/APC Application Programming Manual

Verb Definitions
SNAX/APC Application Programming Manual138786
3-5
Single Session
APC-DEACTIVATE-NORMAL (NO)
SNAX/APC deactivates the session normally. If a conversation is active,
deactivation waits until the conversation is deallocated. Deactivation occurs
immediately if no conversation is active.
APC-DEACTIVATE-CLEANUP (CL)
SNAX/APC deactivates the session immediately, regardless of conversation
status. An application can use cleanup to deactivate a hung conversation.
SNAX/APC terminates the conversation with the reply code
RC-RESOURCE-FAIL-NO-RETRY.
Return Codes
The following return codes can be returned in REP-RETURN-CODE of
DAR-HEADER:
RC-OK
RC-PARAMETER-ERROR
Considerations
A TP can issue DEACTIVATE-SESSION for any LU, not just the LU named in the
TP-READY verb.
If a DEACTIVATE-SESSION verb is processing when SNAX/APC receives a
CANCEL system message from the application program, SNAX/APC replies to the
cancelled IPC immediately. The DEACTIVATE-SESSION verb is allowed to finish
normally. After SNAX/APC finishes processing the verb, SNAX/APC deallocates
the conversation and frees the internal resources.
Note. There is a difference between this action and the action necessary for
ACTIVATE-SESSION.