com.ibm.jzos.sample
Class CatalogSearchSample

java.lang.Object
  extended by 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. 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.


Constructor Summary
CatalogSearchSample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogSearchSample

public CatalogSearchSample()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception