This quick reference provides essential TSO commands at a glance. Use this as a cheat sheet for the most commonly used TSO commands for dataset management, job operations, and system interaction. For detailed explanations and advanced usage, refer to the comprehensive TSO command tutorials.
TSO (Time Sharing Option) commands are entered at the TSO READY prompt or from within ISPF. They perform system operations like dataset management, job submission, and system queries. This reference consolidates the most important commands for quick lookup.
Commands for managing datasets:
| Command | Description | Example |
|---|---|---|
| LISTCAT | List catalog entries (datasets) | LISTCAT ENTRIES('USERID.*') |
| LISTDS | List dataset information | LISTDS 'USERID.DATA' |
| LISTALC | List allocated datasets | LISTALC |
| Command | Description | Example |
|---|---|---|
| ALLOCATE | Allocate (create) new dataset | ALLOCATE DATASET('USERID.NEW') NEW SPACE(TRACKS,(10,5)) RECFM(F,B) LRECL(80) |
| DELETE | Delete dataset | DELETE 'USERID.OLD' |
| RENAME | Rename dataset | RENAME 'USERID.OLD' 'USERID.NEW' |
| COPY | Copy dataset | COPY 'USERID.SOURCE' 'USERID.BACKUP' |
Commands for submitting and managing jobs:
| Command | Description | Example |
|---|---|---|
| SUBMIT | Submit JCL job for execution | SUBMIT 'USERID.JCL(MYJOB)' |
| STATUS | Check job status | STATUS JOB12345 |
| CANCEL | Cancel a submitted job | CANCEL JOB12345 |
Commands for system interaction and utilities:
| Command | Description | Example |
|---|---|---|
| SEND | Send message to user or terminal | SEND 'USERID' 'Hello' |
| RECEIVE | Receive messages | RECEIVE |
| TIME | Display current time | TIME |
| PROFILE | Display or modify user profile | PROFILE |
Tips for using TSO commands effectively:
Think of TSO commands like instructions you give to the mainframe:
So TSO commands are like instructions you give to the mainframe to tell it what to do - manage files, run programs, or check on things!
Practice using TSO commands from this quick reference:
Objective: Practice listing dataset information.
Steps:
Objective: Practice dataset operations.
Steps:
Objective: Practice job submission and status checking.
Steps:
1. What TSO command lists catalog entries?
2. What TSO command allocates a dataset?
3. What TSO command submits a job?
4. What TSO command checks job status?
5. What TSO command deletes a dataset?