Strovent SystemsSign in
Reference

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 TSO in front: TSO LISTDS 'USER.DATA'.
  • On ISPF option 6 (Command) type the command without TSO.
  • At the READY prompt 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

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 CATALOGED means the system has no entry for that name.

For the full list see the TSO/E Command Reference in IBM host links.

Spotted a mistake? Email [email protected].