Reconnect to a TSO session after the connection drops
How LOGON RECONNECT gets you back into a TSO/E session after a network drop, how long RECONLIM keeps it, and why a timed-out session is gone.
When the network drops under a TSO/E session, z/OS does not end it straight away. Your address space waits for a while, and you can pick it up again by logging on with RECONNECT. Everything you had open, ISPF split screens included, comes back as it was.
If the drop came after the session sat idle, see EZZ6034I CONN DROP after idle, TN3270 TIMEMARK and SCANINTERVAL.
How to reconnect
Step 1. Connect to the host again and go to the TSO logon panel the way you normally do.
Step 2. Enter your user ID. If the system says the user ID is already logged on (IKJ56425I), that is expected: your old session is still waiting.
Step 3. On the full-screen logon panel, type your password, then put an S in front of RECONNECT in the option line at the bottom:
ENTER AN 'S' BEFORE EACH OPTION DESIRED BELOW:
-NOMAIL -NONOTICE SRECONNECT -OIDCARD
Step 4. Press Enter.
From a line-mode prompt you can type LOGON youruserid RECONNECT instead. On z/VM the equivalent is LOGON with HERE; see z/VM HCPLGA054E "Already logged on": reconnect with LOGON ... HERE.
RACF checks your password again, and if the site protects terminals, whether you may use the new one. You cannot switch to a different RACF group during a reconnect. Settings made with the TERMINAL command in the old session are lost, so set them again if you rely on them.
How long you have
The time limit is RECONLIM in the TSOKEYxx member of SYS1.PARMLIB. It is set in minutes, and the IBM default is 3. RECONLIM=0 means a dropped session can never be reconnected. After the limit passes, the address space ends and you have to log on fresh; whatever was unsaved is gone.
Only your systems programmer can change RECONLIM. If drops are common where you work, ask what the value is.
When reconnect does not work
- The session timed out instead of dropping. An idle timeout (the SMF job wait time, JWT) cancels an idle address space rather than leaving it disconnected, so there is nothing to reconnect to and logging on starts a new session. IBM notes the reverse also holds: once a session is truly disconnected, JWT does not cancel it, and only RECONLIM applies.
- The limit already passed. You log on normally and get a new session.
IKJ56453I SESSION CANCELLED. The operator, the system or LOGON cancelled the session. On a sysplex this can happen when the same user ID is already logged on to another system and a site exit rejects the duplicate. Ask which system you should log on to, or have the old session cancelled.
Avoiding lost work
- Save often in ISPF Edit. A reconnect saves you only within RECONLIM.
- On a phone or tablet, drops often come from the device sleeping or switching networks. Reconnect within the limit and your session is still there.
- Some sites run a session manager in front of TSO that keeps sessions alive across drops. If yours does, follow the site's instructions for getting back to it.
Related
- TSO/E logon and common messages
- TSO commands
- ISPF navigation
- EZZ6034I CONN DROP after idle, TN3270 TIMEMARK and SCANINTERVAL
- Why did my session disconnect?
- z/VM HCPLGA054E "Already logged on": reconnect with LOGON ... HERE
- ISPF EDIT AUTOMATIC RECOVERY panel after a dropped session: continue, DEFER or CANCEL
Sources
- Using the TSO LOGON command with the RECONNECT operand (IBM z/OS 3.1)
- Statements and parameters for TSOKEY00 (RECONLIM, IBM z/OS 3.2)
- TERMINAL command (IBM z/OS 3.1)
- IKJ56453I (IBM z/OS 3.1)
- Disconnected TSO/VTAM sessions ignore the SMF job wait timer (IBM Support)
- APAR OA61193 (IKJ56453I on duplicate logon, IBM Support)
- z/OS TSO/E User's Guide (logon panel with the RECONNECT option)