Run a TSO command from ISPF: the TSO prefix, option 6, and HELP that opens ISPF help
Inside ISPF, type TSO before a TSO command, or use option 6 without it. Why HELP, PRINT and CANCEL need TSO even on option 6, and why && keeps an ampersand.
TSO commands (LISTDS, ALLOCATE, SUBMIT, a CLIST or a REXX exec) run in three places. Which one you are in decides whether you type TSO first.
The three places
| Where | What to type | |---|---| | The READY prompt, outside ISPF | the command: RENAME old.data new.data | | ISPF option 6, the ISPF Command Shell | the command, usually without TSO | | The Command ===> or Option ===> line of any other ISPF panel | TSO first: TSO RENAME old.data new.data |
On option 3.4 (the data set list) you can also type a TSO command or exec in the line command field next to a data set.
IBM puts it this way: on option 6 you do not need TSO before the command, as you do on other panels.
Commands that exist in ISPF too
Some names are both an ISPF command and a TSO command, for example HELP, PRINT and CANCEL. On option 6 these still go to ISPF unless you put TSO in front. So to get TSO help for a command:
TSO HELP LISTDS
When you use the TSO prefix on option 6, ISPF blanks the command after it runs.
Ampersands
ISPF treats a word starting with & as an ISPF variable. To pass a real ampersand to the TSO command, type two:
DEF NONVSAM(NAME('MY.DATASET') DEVT(0000) VOLUME(&&SYSR2))
Interrupting a command
A long listing or a looping exec stops with PA1 (attention); see Stop a looping TSO command or REXX exec (PA1, IRX0920I).
Related
- TSO commands
- ISPF navigation basics
- Stop a looping TSO command or REXX exec (PA1, IRX0920I)
- ISPF Edit commands: X ALL, FIND ALL, FLIP, DELETE ALL NX and block line commands
- z/OS data set shows MIGRAT: recall it with HRECALL