CANCEL USER command
The CANCEL USER command terminates a user session. When a user has multiple sessions with the same user ID, you can use the IP parameter to cancel a specific session.
Use IP=addr:port when multiple sessions exist for the same User ID. This will help to identify a specific user session.
Format:
z/OS:
/F jobname,CANCEL USER userid [IP=addr:port]
jobnameSends a modify command to the running started task or address space.
CANCEL USER useridImmediately disconnects the specified logged‑in user.
IP=addr:port optional
Cancels only the session from the specified client IP address and port, if the user has multiple sessions.