java.lang.Object
com.ibm.jzos.sample.CatalogSearchSample
Sample program that uses CatalogSearch, LOCATE and OBTAIN to display information about
datasets matching a filter key. The filter key is given as an argument to main().
The sample program first uses CatalogSearch to get a list of datasets matching the supplied
filter key. Then, for each dataset, ZFile.locateDSN(String) is used to get the first entry
of the list of MVS volumes that contain the dataset. Finally ZFile.obtainDSN(String, String)
is used to obtain the format 1 DSCB information for the dataset.
If the complete lookup cannot be completed for a dataset (e.g. the volume not being mounted) a message is written and the dataset is skipped.
- Since:
- 2.1.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CatalogSearchSample
public CatalogSearchSample()
-
-
Method Details
-
main
- Throws:
Exception
-