TSO commands
A handful of TSO/E commands for data sets, jobs and status, and how to enter them from ISPF.
TSO (Time Sharing Option) is the command interface of z/OS. Most people reach it through ISPF, but the READY prompt gives you the same commands.
Where to type
- On the ISPF command line, put
TSOin front:TSO LISTDS 'USER.DATA'. - On ISPF option 6 (Command) type the command without
TSO. - At the
READYprompt type the command alone.
Everyday commands
HELP list the commands (HELP command shows its syntax)
LISTDS 'dsn' show a data set's attributes (add MEMBERS to list a PDS)
LISTCAT list the catalog entries for your prefix
STATUS jobname show the status of a job you submitted
SUBMIT 'dsn' submit a data set as a batch job
CANCEL jobname cancel a job
ALLOCATE ... create or connect a data set
DELETE 'dsn' delete a data set
RENAME 'old' 'new'
TIME show the time and CPU used
LOGOFF end the session
Data set names are not case sensitive in TSO. A name in single quotes is fully qualified. Without quotes your prefix (usually your user ID) is added. To delete many data sets with one command, see Delete z/OS data sets with a wildcard: DELETE generic names, MASK and ISPF 3.4.
Interrupting
PA1(attention) interrupts a long listing or a running command. For a REXX exec, PA1 brings up IRX0920I; see Stop a looping TSO command or REXX exec (PA1, IRX0920I).- At the
READYprompt, a command that is still running can often be stopped with attention.
Common messages
IKJ56500I COMMAND ... NOT FOUND. The command is not installed or misspelled.- A data set that is "not in catalog" usually means the name is wrong. Check the quotes and the prefix.
NOT CATALOGEDmeans the system has no entry for that name.
For the full list see the TSO/E Command Reference in IBM host links.
Related
- ISPF navigation
- SDSF basics
- IND$FILE
- TSO messages IKJ56700A (ENTER ...) and IKJ56420I (not authorized to use TSO)
- Reconnect to a TSO session after the connection drops
- Stop a looping TSO command or REXX exec (PA1, IRX0920I)
- Delete z/OS data sets with a wildcard: DELETE generic names, MASK and ISPF 3.4
- Run a TSO command from ISPF: the TSO prefix, option 6, and HELP that opens ISPF help
- ISPF 3.2 allocate fails: "DATA SET ... NOT ALLOCATED" (IKJ56883I, IKJ56893I) and the IGD messages
- z/OS space abends B37, D37 and E37 (IEC030I, IEC031I, IEC032I): data set out of space
- z/OS data set shows MIGRAT: recall it with HRECALL