Stop a looping TSO command or REXX exec (PA1, IRX0920I)
Press PA1, the TSO attention key, to stop a looping command. For a REXX exec, answer IRX0920I with HI, or HE if HI fails. Enter alone resumes the work.
In TSO/E the key that stops a running command is the attention interrupt key. On a 3270 terminal it is PA1. Press it once and TSO stops what it is doing and waits for you. What you type next decides what happens.
Stop an ordinary TSO command
Press PA1. Then choose:
- Do nothing more if
READYappears: the command has ended. - Type a different command and press Enter to end the interrupted work and run the new command. You may still see one more line of output from the old program.
- Press Enter with nothing typed to let the interrupted command carry on where it stopped. Some output that was on its way to the screen can be lost.
- Type
TIMEorTESTto run one of those without ending the interrupted work. Any other command ends it.
PA1 is also the way out of a command that keeps prompting you, such as CALL asking ENTER DATA SET NAME -: it cancels the command and READY appears.
If you pressed attention after CANCEL, STATUS or SUBMIT, Enter may not resume it: the interrupt can end those commands outright.
Stop a REXX exec
When a REXX exec is running and you press PA1, TSO shows the REXX attention message IRX0920I and waits for an immediate command:
HI(Halt Interpretation) stops the exec before its next REXX instruction. If the exec hasSIGNAL ON HALT, control goes to itsHALT:label instead, so it can clean up. Try this first.HE(Halt Execution) stops the exec straight away, even while it is inside an external function or a program written in another language. Use it whenHIhas no effect, becauseHIis only checked once control comes back to REXX.HT(Halt Typing) lets the exec keep running but hides its output;RT(Resume Typing) shows output again. Output produced in between is lost.- Enter on an empty line resumes the exec.
HE ends only the exec that is running. An exec that called it keeps going unless you are under ISPF. If you had already entered HI, the halt condition stays set, and the calling execs stop when control returns to them.
If a host command (for example a TSO command or a program called with ADDRESS TSO) is running inside the exec when you press attention, REXX usually ends that command and sets RC to -1 without showing IRX0920I, unless the command handles attention itself.
When PA1 seems to do nothing
- Try the Attn key instead. Many clients have a separate Attn key. It reaches the host as an SNA attention signal rather than as
PA1, and many host applications treat it as an interrupt. Over Telnet it is defined only for a TN3270E session with an SNA-backed server; see Attn and SysReq over TN3270: why the key does nothing. - You are on the full-screen logon panel. There
PA1only erases the screen. - The screen shows
X SYSTEMfor a long time. The command may be busy or waiting rather than looping. Give it time, or ask an operator to check the job. - Nothing works. Ask an operator to cancel your TSO user ID, then log on again.
On z/VM, CMS has its own commands for this, HX and HI; see Stop a looping CMS program on z/VM: HX, HI, HT, PA1 and BEGIN.
Related
- TSO commands
- Attn and SysReq over TN3270: why the key does nothing
- PA and PF keys in practice
- 3270 status indicators, X SYSTEM, X -f, X PROG and COMM
- Reconnect to a TSO session after the connection drops
- Stop a looping CMS program on z/VM: HX, HI, HT, PA1 and BEGIN
Sources
- z/OS TSO/E User's Guide (Interrupting a Process, IBM z/OS 3.1)
- z/OS TSO/E REXX Reference (immediate commands HE, HI, HT, RT; IRX0920I; interrupting a host command)
- Infinite loops (TSO/E REXX User's Guide, IBM z/OS 2.4)
- RFC 2355: TN3270 Enhancements (section 11, the 3270 ATTN key)