- java.lang.Object
-
- com.ibm.jzos.sample.CatalogSearchSample
-
public class CatalogSearchSample extends java.lang.Object
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. FinallyZFile.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 Constructor Description CatalogSearchSample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
-