TSO LISTCAT Command
The LISTCAT command lists the entries from master or user catalogs for the datasets or files. This information includes dataset attributes, volume information, and catalog entries.
Syntax -
LISTCAT ENTRY(‘entry-name’) or LISTCAT CATALOG('catname') LIBRARY('lib_name') FILE('dname') [Options]
Where -
- lib_name is the name of the PDS entry to be listed.
- Catname is the catalog name for the entry to be listed.
- dname is the file name where the entry to be listed.
- Options are the additional options to list the information.
Examples -
Scenario1 - List the catalog information.
LISTC CATALOG('CATALOG.Z147.MTH.MASTER')
OR
LISTC ENT('CATALOG.Z147.MTH.MASTER')
This would list the CATALOG.Z147.MTH.MASTER catalog information in the system.
Scenario2 - List the information of the datasets starts with MATEPK.TSO.*
LISTC ENT('MATEPK.TSO.*')

This would display a list of all datasets whose names start with "MATEPK.TSO".
Note! There are many options are available with ALLOCATE command and used when they needed.