SOCK gate, SWITCH_TO_SOCKET_TCB function

The SWITCH_TO_SOCKET_TCB function switches to the required socket TCB.

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

OLD_TCB_TOKEN
Optional Parameter
The token that represents the TCB the caller of the SWITCH_TO_SOCKET_TCB function was executing on.
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
  • IO_ERROR
  • UNKNOWN_SESSION_TOKEN
The following values are returned when RESPONSE is PURGED:
  • TASK_CANCELLED


dfhs3_SOCKswitch_to_socket_tcb.html | Timestamp icon Last updated: Monday, 5 June 2017