SOCK gate, SWITCH_FROM_SOCKET_TCB function
The SWITCH_FROM_SOCKET_TCB function switches from the socket TCB to the TCB that the SWITCH_TO_SOCKET_TCB was made from.
Input Parameters
- SOCKET_TOKEN
- Optional Parameter
- A token that is generated when a socket is created, and is used subsequently to identify the socket.
Output Parameters
- REASON
- The following values are returned when RESPONSE is DISASTER:
- ABEND
- LOOP
- CHANGE_MODE_ERROR
- The following values are returned when RESPONSE is EXCEPTION:
- ALREADY_ON_SOCKET_TCB
- INCORRECT_TCB_SWITCH_SEQ
- NOT_ON_SOCKET_TCB
- UNKNOWN_SESSION_TOKEN
- The following values are returned when RESPONSE is PURGED:
- TASK_CANCELLED