100% found this document useful (1 vote)
3K views3 pages

Essential TSO Commands for Mainframe

The document provides a list of 25 utility commands and functions available on the mainframe system with descriptions and examples. Some key commands listed include DSLIST to list datasets, TSO DEL to delete datasets, TSO CLASS to view job classes, TSO RESTARCH to restore archived datasets, and EZ to search strings across libraries.

Uploaded by

api-27095622
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
3K views3 pages

Essential TSO Commands for Mainframe

The document provides a list of 25 utility commands and functions available on the mainframe system with descriptions and examples. Some key commands listed include DSLIST to list datasets, TSO DEL to delete datasets, TSO CLASS to view job classes, TSO RESTARCH to restore archived datasets, and EZ to search strings across libraries.

Uploaded by

api-27095622
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
  • Command List and Utility Functions - Part 1
  • Programming Utilities and Function Commands
  • Advanced Command Retrieval and Usage

Sl

Utility/Command Function Usage Example


Num
DSLIST
1 DSLIST Listing a Dataset. DSLIST 'dataset name'
'[Link]'
TSO DEL
2 TSO DEL Deleting a dataset. TSO DEL 'dataset name'
'GNCT.AA39026.TEST1'
3 TSO CLASS Listing of JOB CLASS. TSO CLASS TSO CLASS
Restoring an archived TSO RESTARCH - Give
4 TSO RESTARCH TSO RESTARCH
dataset. input to the panel
TSO RSEND - Give
To send a message to
5 TSO RSEND TSO RSEND recipient ids separated by
another mainframe user.
commas

[Link] RLCL in the


command line.
[Link] CC line commands
To find the record length
at starting and ending of
6 RLCL between two working NA
record fields.
storage variable.
[Link] will give you the
length of the fields between
these CCs.

[Link] ACF press Enter 2.


For userid information.(To
Type list *
7 TSO ACF know the expiry date of NA
[Link] come out of the
userid).
screen type END.
Compile listing of source
8 TSO CHGLIST code for a member in TSO CHGLIST NA
changeman
To expand a particular copy TSO ZOOM
9 TSO ZOOM TSO ZOOM GNMDTFMD
book. <copybookname>
To expand 3 levels of copy
10 ZCOPY3 Type ZCOPY3 then enter NA
books in a cobol program.
11 TSO BMC To get details for DB
To search a string in
12 EZ Type EZY then enter. Give proper parameters
different libraries
Place the cursor on the
dataset name.
13 BB Browsing a dataset NA
Then type bb at the
command [Link] enter.
Creating a template for JCL
14 TSO ALLOCJCL TSO ALLOCJCL NA
for IMS DB
Creating a Cobol program
15 TSO CPGM TSO CPGM NA
template for IMS DB
Storing CUT lines to A and CUT A
16 CUT A, PASTE A NA
pasting from A. PASTE A
This will create a new copy
17 CREATE .ZF .ZL CREATE .ZF .ZL NA
of lines FIRST TO LAST
TO Give A name TO
[Link] helps in
SCRNAME SCRNAME IOF
18 SCRNAME browsing different screens
<SCREENNAME> SCRNAME CH
by typing the screen name
and F9.
TO expand JCL JCL to
19 AA display all procs in
[Link]

20 TSO RCOPY Copy a sequential file

21 TSO BOOKMGR To see the IBM manuals.

Type 'RETP' against


command prompt and press
Enter key. Retrieve panel
containing all previously
22 RETP
entered commands will be
displayed. We can select
anyone of them for
execution.

Type REFACTD against


command prompt and press
Enter. Retrieve panel
23 REFACTD
containing Last 30
referenced datasets will
be displayed.
The RETRIEVE command
is used to recall previously
entered commands to the
command line. The
commands
are
displayed, one at a time, in a
reverse sequence to which
they were entered (LIFO).
You can then resubmit the
command for
execution. Commands
24 RETRIEVE
entered with PF keys cannot
be recalled with the
RETRIEVE command. This
can be used more
effectively by setting it in a
function key. For that, Type
KEYS in Command Prompt
Type RETRIEVE against
a function key (say PF4)
.By pressing PF4 we can get
the previously typed
commands.

This command used to list


25 KEYS all the mapped keys and can
remap the keys.

Sl 
Num
Utility/Command
Function
Usage
Example
1
DSLIST
Listing a Dataset.
DSLIST  'dataset name'
DSLIST 
'GNCT.AA39026.jcls'
15
TSO CPGM
Creating a Cobol program 
template for IMS DB
TSO CPGM
NA
16
CUT A, PASTE A
Storing CUT lines  to A and 
pasting
24
RETRIEVE
The RETRIEVE command 
is used to recall previously 
entered commands to the 
command line. The 
commands 
are

You might also like