LISTDS Command
LISTDS Command
The LISTDS command is used to display the list of datasets that match a given pattern or criteria.
Syntax -
LISTDS [dataset-name(member-name)] [qualifiers] [options]
Where -
- dataset-name is the name of the dataset or the prefix of the datasets to be listed.
- member-name is the name of the member to be listed (if the dataset is a partitioned dataset).
- qualifiers are optional qualifiers to refine the search.
- Options are optional parameters that can use for customizing the display.
Examples -
Scenario1 - List the matching PDS information with qualifier.
LISTDS 'MATEPK.COBOL.*'
This would display a list of all datasets that match the given pattern.